Open lazka opened 1 month ago
Two issues:
The last one fails:
$ mkdir -p /tmp/bla $ touch /tmp/bla/unctest.py $ python3 -c "import sys; sys.path.insert(0, r'C:/msys64/tmp/bla'); import unctest" $ python3 -c "import sys; sys.path.insert(0, r'C:\\msys64\\tmp\\bla'); import unctest" # broken: $ python3 -c "import sys; sys.path.insert(0, r'\\\\?\\C:\\msys64\\tmp\\bla'); import unctest" # works $ MSYSTEM= python3 -c "import sys; sys.path.insert(0, r'\\\\?\\C:\\msys64\\tmp\\bla'); import unctest"
Maybe related:
$ python3 -c "import os; print(os.path.normpath(r'\\\\?\\C:\\msys64\\tmp\\bla'))" //?/C:/msys64/tmp/bla
We should not normalize paths starting with with \\?\ even if MSYSTEM is set, as that would break them.
\\?\
Possible related downstream issues:
Two issues:
The last one fails:
Maybe related:
We should not normalize paths starting with with
\\?\
even if MSYSTEM is set, as that would break them.Possible related downstream issues: