New submission from layday <lay...@protonmail.com>:
After https://github.com/python/cpython/commit/6811fdaec825bd6ab64e358a4b480108f5634d2d the venv module produces spurious warnings for venv paths which contain DOS-encoded parts e.g. "USER\~1" in "C:\Users\USER~1". `tempfile.gettempdir()` returns legacy paths like these for user temp dirs. MRE: python -c "import tempfile import venv venv.create(tempfile.mkdtemp())" Actual environment location may have moved due to redirects, links or junctions. Requested location: "C:\Users\RUNNER~1\AppData\Local\Temp\tmpfoobar\Scripts\python.exe" Actual location: "C:\Users\runneradmin\AppData\Local\Temp\tmpfoobar\Scripts\python.exe" ---------- components: Library (Lib), Windows messages: 409135 nosy: layday, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: venv module produces spurious warning that location has moved type: behavior versions: Python 3.10, Python 3.11, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46171> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com