[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths
NM
report at bugs.python.org
Mon May 27 09:04:40 EDT 2019
NM <niklas.mattisson at gmail.com> added the comment:
Is this related to the weird paths I am seeing when getting different output in venv compared to without venv:
from pathlib import Path
filename = Path(__file__)
filename2 = Path('C:\\path\\to\\file.py')
print(filename)
print(filename2)
Where the result is:
----------------------------
Powershell (python.exe run):
file.py
C:\path\to\file.py
Venv run:
C:\path\to\file.py
C:\path\to\file.py
----------
nosy: +nmat
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36305>
_______________________________________
More information about the Python-bugs-list
mailing list