Fix path delimiter normalization issue on Windows - .emscripten must feed

forward slashes to Emscripten even on Windows. #40
This commit is contained in:
Jukka Jylänki
2015-10-06 21:54:00 -07:00
parent c5933615ec
commit 3e251bebd8

4
emsdk
View File

@@ -734,7 +734,7 @@ def generate_dot_emscripten(active_tools):
cfg = 'import os\n'
if embedded:
cfg += 'emsdk_path=os.path.dirname(EM_CONFIG)\n'
cfg += "emsdk_path=os.path.dirname(EM_CONFIG).replace('\\\\', '/')\n"
for tool in active_tools:
tool_cfg = tool.activated_config()
@@ -759,7 +759,7 @@ JS_ENGINES = [NODE_JS]
'''
if embedded:
cfg = cfg.replace(emscripten_config_directory, '\' + emsdk_path + \'')
cfg = cfg.replace(emscripten_config_directory, "' + emsdk_path + '")
with open(dot_emscripten_path(), "w") as text_file: text_file.write(cfg)