feat(bin/linja): delete MSYSTEM env variable on Windows

This commit is contained in:
Soonho Kong 2014-10-03 17:30:29 -07:00
parent f8164b6a7e
commit b2c8e7d364

View file

@ -27,6 +27,11 @@ import urllib
if platform.system() == "Windows":
os.path.sep = "\\"
# Reset MSYSTEM environment variable to enforce native-WINDOWS
# behavior to subprocesses.
if "MSYSTEM" in os.environ:
del os.environ["MSYSTEM"]
if platform.system().startswith("MSYS"):
# In MSYS platform, realpath has a strange behavior.
# os.path.realpath("c:\a\b\c") => \:\a\b\c