diff options
Diffstat (limited to 'Lib/pkgutil.py')
| -rw-r--r-- | Lib/pkgutil.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py index 5b6b16995a..6e93a3e74f 100644 --- a/Lib/pkgutil.py +++ b/Lib/pkgutil.py @@ -510,10 +510,8 @@ def extend_path(path, name): return path pname = os.path.join(*name.split('.')) # Reconstitute as relative path - # Just in case os.extsep != '.' - sname = os.extsep.join(name.split('.')) - sname_pkg = sname + os.extsep + "pkg" - init_py = "__init__" + os.extsep + "py" + sname_pkg = name + ".pkg" + init_py = "__init__.py" path = path[:] # Start with a copy of the existing path |
