From e899a6fd5afab39de6d3947d52ed60fa6ed225ad Mon Sep 17 00:00:00 2001 From: "M.T. McParlane" <1326577+mmcparlane@users.noreply.github.com> Date: Thu, 1 Oct 2020 15:32:16 -0400 Subject: [PATCH] Fix issue where MSYS2 and MinGW mistaken for Linux (#628) When running `emsdk.py` with python provided by MSYS2/MinGW the environment gets falsely identified as Linux. See discussion for details: https://github.com/emscripten-core/emscripten/issues/12376#issuecomment-702245993 Fixes #385 --- emsdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emsdk.py b/emsdk.py index 5e38497..eb2686c 100644 --- a/emsdk.py +++ b/emsdk.py @@ -74,7 +74,7 @@ if platform.mac_ver()[0] != '': MACOS = True LINUX = False -if not MACOS and (platform.system() == 'Linux' or os.name == 'posix'): +if not MACOS and (platform.system() == 'Linux'): LINUX = True UNIX = (MACOS or LINUX)