[Python-bugs-list] [ python-Bugs-574235 ] convert_path fails with empty pathname
noreply@sourceforge.net
noreply@sourceforge.net
Sun, 11 Aug 2002 08:33:51 -0700
Bugs item #574235, was opened at 2002-06-26 15:48
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=574235&group_id=5470
Category: Distutils
Group: Python 2.1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Aneesh Dalvi (adalvi)
>Assigned to: Martin v. Löwis (loewis)
Summary: convert_path fails with empty pathname
Initial Comment:
In distutils/util.py, in the function convert_path, I find I
have to add the following two lines:
def convert_path (pathname):
...
if os.sep == '/':
return pathname
>> if pathname=='':
>> return pathname
This is required when installing piddle-1.0.15 on a Win32
platform. It is required under Python 2.1.2 as well as
2.2.1.
I don't know if it is something specific to piddle, Win32,
or something else.
----------------------------------------------------------------------
>Comment By: Neal Norwitz (nnorwitz)
Date: 2002-08-11 11:33
Message:
Logged In: YES
user_id=33168
Martin, could you please review this patch? Should this be
implemented?
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2002-06-26 22:02
Message:
Logged In: YES
user_id=33168
This approach seems reasonable.
I've attached a patch.
I'm not sure why an empty path would
be passed, but I suppose it can't hurt to check.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=574235&group_id=5470