This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: win_add2path.py does not add user site directory
Type: behavior Stage: patch review
Components: Demos and Tools, Windows Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: altendky, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2016-08-05 21:31 by altendky, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
win_add2path.patch altendky, 2016-08-05 21:31 review
Messages (1)
msg272060 - (view) Author: Kyle Altendorf (altendky) * Date: 2016-08-05 21:31
Since the detected user path has the text `%APPDATA%` replaced into it `os.path.isdir()` returns `False`.  As a result, the user site path is not added to the `%PATH%` variable.

The patch adds `os.path.expandvars()` to the `isdir()` check to resolve this issue.
History
Date User Action Args
2022-04-11 14:58:34adminsetgithub: 71883
2016-08-06 07:35:18SilentGhostsetnosy: + paul.moore, tim.golden, zach.ware, steve.dower

components: + Demos and Tools, Windows
stage: patch review
2016-08-05 21:31:26altendkycreate