Index: distutils/util.py =================================================================== RCS file: /projects/cvsroot/distutils/distutils/util.py,v retrieving revision 1.29 diff -a -u -r1.29 util.py --- util.py 2000/04/22 15:14:58 1.29 +++ util.py 2000/04/24 15:01:35 @@ -72,13 +72,13 @@ raise ValueError, "path '%s' cannot be absolute" % pathname if pathname[-1] == '/': raise ValueError, "path '%s' cannot end with '/'" % pathname - if os.sep != '/' and os.sep in pathname: - raise ValueError, \ - "path '%s' cannot contain '%c' character" % \ - (pathname, os.sep) - - paths = string.split (pathname, '/') - return apply (os.path.join, paths) + if os.sep != '/': + if os.sep in pathname: + raise ValueError, \ + "path '%s' cannot contain '%c' character" % (pathname, os.sep) + else: + paths = string.split (pathname, '/') + return apply (os.path.join, paths) else: return pathname