Fix emsdk invocation on non-Windows OSes.
This commit is contained in:
2
emsdk
2
emsdk
@@ -32,7 +32,7 @@ binaryen_git_repo = 'https://github.com/WebAssembly/binaryen.git'
|
|||||||
VERBOSE = bool(os.getenv('EMSDK_VERBOSE')) if os.getenv('EMSDK_VERBOSE') != None else False
|
VERBOSE = bool(os.getenv('EMSDK_VERBOSE')) if os.getenv('EMSDK_VERBOSE') != None else False
|
||||||
|
|
||||||
WINDOWS = False
|
WINDOWS = False
|
||||||
if os.name == 'nt' or 'WINDOWS' in os.getenv('SYSTEMROOT') or 'WINDOWS' in os.getenv('COMSPEC'):
|
if os.name == 'nt' or (os.getenv('SYSTEMROOT') != None and 'WINDOWS' in os.getenv('SYSTEMROOT')) or (os.getenv('COMSPEC') != None and 'WINDOWS' in os.getenv('COMSPEC')):
|
||||||
WINDOWS = True
|
WINDOWS = True
|
||||||
ENVPATH_SEPARATOR = ';'
|
ENVPATH_SEPARATOR = ';'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user