mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
put build tools first in the path rather than last
This commit is contained in:
parent
c4c61cec64
commit
b8b7b96a1c
@ -114,9 +114,14 @@ def extract_zip(zip_filename, target_dir):
|
|||||||
def env_augmented_with_paths(*path_dirs_to_add):
|
def env_augmented_with_paths(*path_dirs_to_add):
|
||||||
env_copy = dict(os.environ)
|
env_copy = dict(os.environ)
|
||||||
path_dirs = env_copy["PATH"].split(os.pathsep)
|
path_dirs = env_copy["PATH"].split(os.pathsep)
|
||||||
|
|
||||||
|
paths_adding = []
|
||||||
for d in path_dirs_to_add:
|
for d in path_dirs_to_add:
|
||||||
if d not in path_dirs:
|
if d not in path_dirs:
|
||||||
path_dirs.append(d)
|
paths_adding.append(d)
|
||||||
|
|
||||||
|
path_dirs = paths_adding + path_dirs
|
||||||
|
|
||||||
env_copy["PATH"] = os.pathsep.join(path_dirs)
|
env_copy["PATH"] = os.pathsep.join(path_dirs)
|
||||||
return env_copy
|
return env_copy
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user