Fix --embedded parameter to read EM_CONFIG instead of misassuming that tools/shared.py would have been imported before. #40.

This commit is contained in:
Jukka Jylänki
2015-10-07 04:04:16 +03:00
parent 9193d167fb
commit f8b9c67429

2
emsdk
View File

@@ -735,7 +735,7 @@ def generate_dot_emscripten(active_tools):
cfg = 'import os\n'
if embedded:
cfg += "emsdk_path=os.path.dirname(EM_CONFIG).replace('\\\\', '/')\n"
cfg += "emsdk_path=os.path.dirname(os.environ.get('EM_CONFIG')).replace('\\\\', '/')\n"
for tool in active_tools:
tool_cfg = tool.activated_config()