From 3e251bebd854f64cbdbeb1810875d7b5859f1e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Tue, 6 Oct 2015 21:54:00 -0700 Subject: [PATCH] Fix path delimiter normalization issue on Windows - .emscripten must feed forward slashes to Emscripten even on Windows. #40 --- emsdk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emsdk b/emsdk index e4fb066..9b691b3 100755 --- a/emsdk +++ b/emsdk @@ -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)