Fix unix path addition issue when the path may have elements with spaces in them.
This commit is contained in:
2
emsdk
2
emsdk
@@ -1120,7 +1120,7 @@ def construct_env_unix(tools_to_activate):
|
|||||||
newpath, added_path = adjusted_path(tools_to_activate)
|
newpath, added_path = adjusted_path(tools_to_activate)
|
||||||
|
|
||||||
if os.environ['PATH'] != newpath: # Don't bother setting the path if there are no changes.
|
if os.environ['PATH'] != newpath: # Don't bother setting the path if there are no changes.
|
||||||
env_string += 'export PATH=' + newpath + '\n'
|
env_string += 'export PATH="' + newpath + '"\n'
|
||||||
if len(added_path) > 0:
|
if len(added_path) > 0:
|
||||||
print 'Adding directories to PATH:'
|
print 'Adding directories to PATH:'
|
||||||
for item in added_path:
|
for item in added_path:
|
||||||
|
|||||||
Reference in New Issue
Block a user