mirror of https://gitlab.com/ita1024/waf.git
Merge branch 'fix-path-calculations-in-git-bash' into 'master'
Utils: only use msys2 paths from msys2 python See merge request ita1024/waf!2217
This commit is contained in:
commit
7aa608889d
|
@ -490,7 +490,9 @@ def split_path_msys(path):
|
||||||
if sys.platform == 'cygwin':
|
if sys.platform == 'cygwin':
|
||||||
split_path = split_path_cygwin
|
split_path = split_path_cygwin
|
||||||
elif is_win32:
|
elif is_win32:
|
||||||
if os.environ.get('MSYSTEM'):
|
# Consider this an MSYSTEM environment if $MSYSTEM is set and python
|
||||||
|
# reports is executable from a unix like path on a windows host.
|
||||||
|
if os.environ.get('MSYSTEM') and sys.executable.startswith('/'):
|
||||||
split_path = split_path_msys
|
split_path = split_path_msys
|
||||||
else:
|
else:
|
||||||
split_path = split_path_win32
|
split_path = split_path_win32
|
||||||
|
|
Loading…
Reference in New Issue