]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF bug #574235, convert_path fails with empty pathname
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 13 Aug 2002 17:49:18 +0000 (17:49 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 13 Aug 2002 17:49:18 +0000 (17:49 +0000)
Lib/distutils/util.py

index 1541e02de90d70966996e1e954885b6c97df1051..abc91391e4154046ba215dd3048c0c3dd448734d 100644 (file)
@@ -84,6 +84,8 @@ def convert_path (pathname):
     """
     if os.sep == '/':
         return pathname
+    if not pathname:
+        return pathname
     if pathname[0] == '/':
         raise ValueError, "path '%s' cannot be absolute" % pathname
     if pathname[-1] == '/':