From 0299b1c99f9adae1e9f74c64e3163e9012cb42af Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Tue, 13 Aug 2002 17:49:18 +0000 Subject: [PATCH] SF bug #574235, convert_path fails with empty pathname --- Lib/distutils/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 1541e02de90d..abc91391e415 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -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] == '/': -- 2.47.3