[issue27696] win_add2path.py does not add user site directory

Kyle Altendorf report at bugs.python.org
Fri Aug 5 17:31:26 EDT 2016


New submission from Kyle Altendorf:

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.

----------
files: win_add2path.patch
keywords: patch
messages: 272060
nosy: altendky
priority: normal
severity: normal
status: open
title: win_add2path.py does not add user site directory
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file44028/win_add2path.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27696>
_______________________________________


More information about the Python-bugs-list mailing list