Merge pull request #47 from brokencuph/master

make behavior consistent in adding compiler bindirs to Path
This commit is contained in:
Roy Qu 2022-05-30 16:39:02 +08:00 committed by GitHub
commit 7f39241114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}