2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-25 19:30:04 +01:00

Workaround for msys2 inconsistent handling of slash characters

MINGW64 /C/msys2/demos/c
$ python -c "import os;print(os.getcwd())"
C:\msys2\demos\c

MINGW64 /C/msys2/demos/c
$ python3 -c "import os;print(os.getcwd())"
C:/msys2/demos/c
This commit is contained in:
Thomas Nagy 2015-10-18 12:26:45 +02:00
parent f340819d50
commit 6c5afc45b1
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -141,7 +141,7 @@ def waf_entry_point(current_directory, version, wafdir):
sys.exit(1)
try:
set_main_module(os.path.join(Context.run_dir, Context.WSCRIPT_FILE))
set_main_module(os.path.normpath(os.path.join(Context.run_dir, Context.WSCRIPT_FILE)))
except Errors.WafError as e:
Logs.pprint('RED', e.verbose_msg)
Logs.error(str(e))