diff options
author | Greg Stein <gstein@lyra.org> | 1999-11-20 11:39:00 (GMT) |
---|---|---|
committer | Greg Stein <gstein@lyra.org> | 1999-11-20 11:39:00 (GMT) |
commit | 6d3165a5a13296f430e27fe59551281036c80904 (patch) | |
tree | e2d1cf00b588b20181cf555e1a27b84d19100de2 /Lib/imputil.py | |
parent | 63faa01538e3d96b1201e3855198a4e463a3d5b6 (diff) | |
download | cpython-6d3165a5a13296f430e27fe59551281036c80904.zip cpython-6d3165a5a13296f430e27fe59551281036c80904.tar.gz cpython-6d3165a5a13296f430e27fe59551281036c80904.tar.bz2 |
only put __path__ into package modules.
Diffstat (limited to 'Lib/imputil.py')
-rw-r--r-- | Lib/imputil.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/imputil.py b/Lib/imputil.py index 04344e0..dd8c95c 100644 --- a/Lib/imputil.py +++ b/Lib/imputil.py @@ -436,7 +436,7 @@ def _fs_import(dir, modname): pathname = _os_path_join(dir, modname) if _os_path_isdir(pathname): - values = { '__pkgdir__' : pathname } + values = { '__pkgdir__' : pathname, '__path__' : [ pathname ] } ispkg = 1 pathname = _os_path_join(pathname, '__init__') else: @@ -609,7 +609,6 @@ class SysPathImporter(Importer): for dir in sys.path: result = _fs_import(dir, modname) if result: - result[2]['__path__'] = [ dir ] # backwards compat return result # not found |