Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prefix and exec_prefix as root dir bug #40131

Closed
goertzen mannequin opened this issue Apr 8, 2004 · 4 comments
Closed

prefix and exec_prefix as root dir bug #40131

goertzen mannequin opened this issue Apr 8, 2004 · 4 comments
Labels
extension-modules C modules in the Modules dir

Comments

@goertzen
Copy link
Mannequin

goertzen mannequin commented Apr 8, 2004

BPO 931938
Nosy @birkenfeld, @ronaldoussoren
Files
  • getpath-patch: Modules/getpath.c 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 = <Date 2006-02-20.17:37:57.000>
    created_at = <Date 2004-04-08.19:04:36.000>
    labels = ['extension-modules']
    title = 'prefix and exec_prefix as root dir bug'
    updated_at = <Date 2006-02-20.17:37:57.000>
    user = 'https://bugs.python.org/goertzen'

    bugs.python.org fields:

    activity = <Date 2006-02-20.17:37:57.000>
    actor = 'georg.brandl'
    assignee = 'none'
    closed = True
    closed_date = None
    closer = None
    components = ['Extension Modules']
    creation = <Date 2004-04-08.19:04:36.000>
    creator = 'goertzen'
    dependencies = []
    files = ['5910']
    hgrepos = []
    issue_num = 931938
    keywords = ['patch']
    message_count = 4.0
    messages = ['45720', '45721', '45722', '45723']
    nosy_count = 3.0
    nosy_names = ['georg.brandl', 'ronaldoussoren', 'goertzen']
    pr_nums = []
    priority = 'normal'
    resolution = 'accepted'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue931938'
    versions = ['Python 2.3']

    @goertzen
    Copy link
    Mannequin Author

    goertzen mannequin commented Apr 8, 2004

    When sys.prefix or sys.exec_prefix are the root
    directory, the reported directory is a null string
    instead of "/".

    This causes site.py to fail as described in bug 713601.

    This patch to Modules/getpath.c inserts a SEP character
    into the string if it is empty.

    It should work fine on any unix, but I don't have any
    python experience on the windows side...

    @goertzen goertzen mannequin closed this as completed Apr 8, 2004
    @goertzen goertzen mannequin added the extension-modules C modules in the Modules dir label Apr 8, 2004
    @goertzen goertzen mannequin closed this as completed Apr 8, 2004
    @goertzen goertzen mannequin added the extension-modules C modules in the Modules dir label Apr 8, 2004
    @ronaldoussoren
    Copy link
    Contributor

    Logged In: YES
    user_id=580910

    What patch?

    You seem to have forgotten so check the "yes I really want to upload a
    file" checkbox.

    @goertzen
    Copy link
    Mannequin Author

    goertzen mannequin commented Aug 9, 2004

    Logged In: YES
    user_id=843814

    Oops. Another try...

    @birkenfeld
    Copy link
    Member

    Logged In: YES
    user_id=849994

    Committed patch as rev. 42522, 42523.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants