Fix collection precedence bug, add new to left of list

This commit is contained in:
AlanCoding 2019-09-04 15:32:03 -04:00
parent 24c16b1c58
commit 11146a071f
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -1472,8 +1472,8 @@ class RunJob(BaseTask):
if env_key in env:
for path in env[env_key].split(':'):
if path not in paths:
paths.append(env[env_key])
paths.append(os.path.join(private_data_dir, folder))
paths = [env[env_key]] + paths
paths = [os.path.join(private_data_dir, folder)] + paths
env[env_key] = os.pathsep.join(paths)
return env