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: prefix and exec_prefix as root dir bug
Type: Stage:
Components: Extension Modules Versions: Python 2.3
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, goertzen, ronaldoussoren
Priority: normal Keywords: patch

Created on 2004-04-08 19:04 by goertzen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
getpath-patch goertzen, 2004-08-09 13:37 Modules/getpath.c patch
Messages (4)
msg45720 - (view) Author: Daniel Goertzen (goertzen) Date: 2004-04-08 19:04
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...
msg45721 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2004-08-07 15:25
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.
msg45722 - (view) Author: Daniel Goertzen (goertzen) Date: 2004-08-09 13:37
Logged In: YES 
user_id=843814

Oops.  Another try...
msg45723 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-02-20 17:37
Logged In: YES 
user_id=849994

Committed patch as rev. 42522, 42523.
History
Date User Action Args
2022-04-11 14:56:03adminsetgithub: 40131
2004-04-08 19:04:36goertzencreate