feat(bin/linja): delete MSYSTEM env variable on Windows
This commit is contained in:
parent
f8164b6a7e
commit
b2c8e7d364
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue