Skip to content

win_add2path.py does not add user site directory #71883

Description

@altendky
mannequin
BPO 27696
Nosy @pfmoore, @tjguk, @zware, @zooba, @altendky
Files
  • win_add2path.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2016-08-05.21:31:26.129>
    labels = ['type-bug', 'OS-windows']
    title = 'win_add2path.py does not add user site directory'
    updated_at = <Date 2016-08-06.07:35:18.905>
    user = 'https://github.com/altendky'

    bugs.python.org fields:

    activity = <Date 2016-08-06.07:35:18.905>
    actor = 'SilentGhost'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Demos and Tools', 'Windows']
    creation = <Date 2016-08-05.21:31:26.129>
    creator = 'altendky'
    dependencies = []
    files = ['44028']
    hgrepos = []
    issue_num = 27696
    keywords = ['patch']
    message_count = 1.0
    messages = ['272060']
    nosy_count = 5.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'altendky']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27696'
    versions = ['Python 3.5']

    Activity

    1. altendky commented on Aug 5, 2016

      altendkymannequin
      MannequinAuthor

      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.

    2. transferred this issue fromon Apr 10, 2022
    3. methane commented on Sep 29, 2026

      @methane
      Member

      win_add2path.py had been removed. #97675

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      OS-windowstype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions