From f8b9c674297e5496719a0b3ea3d3dd848bfa9762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Wed, 7 Oct 2015 04:04:16 +0300 Subject: [PATCH] Fix --embedded parameter to read EM_CONFIG instead of misassuming that tools/shared.py would have been imported before. #40. --- emsdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emsdk b/emsdk index c45864a..e700ae3 100755 --- a/emsdk +++ b/emsdk @@ -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()