Skip to content

Zipfile & directory execution in 3.5.4 also adds the parent directory to sys.path #76732

@nedbat

Description

@nedbat
BPO 32551
Nosy @brettcannon, @ncoghlan, @larryhastings, @tiran, @nedbat, @encukou, @eryksun, @zooba
PRs
  • [3.5] bpo-32551: Consistently configure sys.path[0] (GH-575) #5197
  • Dependencies
  • bpo-29723: 3.6.1rc1 adds the current directory to sys.path when running a subdirectory's main.py; previous versions did not
  • 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 = <Date 2018-05-15.21:31:38.934>
    created_at = <Date 2018-01-14.15:53:57.162>
    labels = ['type-bug']
    title = 'Zipfile & directory execution in 3.5.4 also adds the parent directory to sys.path'
    updated_at = <Date 2018-05-15.21:31:38.933>
    user = 'https://github.com/nedbat'

    bugs.python.org fields:

    activity = <Date 2018-05-15.21:31:38.933>
    actor = 'petr.viktorin'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-05-15.21:31:38.934>
    closer = 'petr.viktorin'
    components = []
    creation = <Date 2018-01-14.15:53:57.162>
    creator = 'nedbat'
    dependencies = ['29723']
    files = []
    hgrepos = []
    issue_num = 32551
    keywords = ['3.5regression']
    message_count = 13.0
    messages = ['309925', '309926', '309944', '309948', '310027', '310039', '310040', '310103', '310134', '310270', '310319', '310495', '310536']
    nosy_count = 8.0
    nosy_names = ['brett.cannon', 'ncoghlan', 'larry', 'christian.heimes', 'nedbat', 'petr.viktorin', 'eryksun', 'steve.dower']
    pr_nums = ['5197']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32551'
    versions = ['Python 3.5']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions