[Python-bugs-list] [ python-Bugs-555404 ] bug in utils.py (not allow "" pathname)
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 13 May 2002 05:20:02 -0700
Bugs item #555404, was opened at 2002-05-13 12:20
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=555404&group_id=5470
Category: Distutils
Group: Python 2.2.1 candidate
Status: Open
Resolution: None
Priority: 5
Submitted By: Evgeny Cherkashin (eugeneai)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug in utils.py (not allow "" pathname)
Initial Comment:
According to documentation : "If You want to place a
data file in Python root directory You should use "" as
a path name". But in this case exception raised due to
check pathname[0]=='/'
Just add a line marked by "+".
in convert_path method
if os.sep == '/':
return pathname
+ if pathname == '': return
if pathname[0] == '/':
raise ValueError, "path '%s' cannot be
absolute" % pathname
if pathname[-1] == '/':
raise ValueError, "path '%s' cannot end with
'/'" % pathname
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=555404&group_id=5470