Changeset 3429
- Timestamp:
- Jun 14, 2007, 4:04:34 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/essentials/sys-apps/portage/pym/portage_util.py
r3418 r3429 36 36 os.path.normpath("//foo") returns "//foo" instead of "/foo" 37 37 We dislike this behavior so we create our own normpath func 38 to fix it. 38 to fix it. 39 This doesn't apply to OS/2 kNIX where "//foo/bar" differs 40 from "/foo/bar" in that the former is a UNC path while the 41 later is a local path. 39 42 """ 40 if mypath.startswith(os.path.sep) :43 if mypath.startswith(os.path.sep) and sys.platform != "os2knix": 41 44 # posixpath.normpath collapses 3 or more leading slashes to just 1. 42 45 return os.path.normpath(2*os.path.sep + mypath)
Note:
See TracChangeset
for help on using the changeset viewer.