Merge pull request #47 from brokencuph/master
make behavior consistent in adding compiler bindirs to Path
This commit is contained in:
commit
7f39241114
|
@ -108,7 +108,7 @@ void ExecutableRunner::run()
|
|||
}
|
||||
pathAdded.append(pSettings->dirs().appDir());
|
||||
if (!path.isEmpty()) {
|
||||
path+= PATH_SEPARATOR + pathAdded.join(PATH_SEPARATOR);
|
||||
path= pathAdded.join(PATH_SEPARATOR) + PATH_SEPARATOR + path;
|
||||
} else {
|
||||
path = pathAdded.join(PATH_SEPARATOR);
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ void OJProblemCasesRunner::runCase(int index,POJProblemCase problemCase)
|
|||
}
|
||||
pathAdded.append(pSettings->dirs().appDir());
|
||||
if (!path.isEmpty()) {
|
||||
path+= PATH_SEPARATOR + pathAdded.join(PATH_SEPARATOR);
|
||||
path= pathAdded.join(PATH_SEPARATOR) + PATH_SEPARATOR + path;
|
||||
} else {
|
||||
path = pathAdded.join(PATH_SEPARATOR);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue