Fix unix path addition issue when the path may have elements with spaces in them.

This commit is contained in:
Jukka Jylänki
2014-11-19 17:25:38 +02:00
parent d07135c90b
commit ef541f8ed9

2
emsdk
View File

@@ -1120,7 +1120,7 @@ def construct_env_unix(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.
env_string += 'export PATH=' + newpath + '\n'
env_string += 'export PATH="' + newpath + '"\n'
if len(added_path) > 0:
print 'Adding directories to PATH:'
for item in added_path: