Message 409135 - Python tracker

Message409135

Author layday
Recipients layday, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-12-24.09:29:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1640338191.84.0.15434906765.issue46171@roundup.psfhosted.org>
In-reply-to
Content
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"
History
Date User Action Args
2021-12-24 09:29:51laydaysetrecipients: + layday, paul.moore, tim.golden, zach.ware, steve.dower
2021-12-24 09:29:51laydaysetmessageid: <1640338191.84.0.15434906765.issue46171@roundup.psfhosted.org>
2021-12-24 09:29:51laydaylinkissue46171 messages
2021-12-24 09:29:51laydaycreate