[Import-sig] Another imputil problem
Thomas Heller
thomas.heller@ion-tof.com
Fri, 9 Feb 2001 22:04:45 +0100
This seems to fix the problem:
*** imputil.py~ Thu Sep 28 05:10:32 2000
--- imputil.py Fri Feb 09 21:02:53 2001
***************
*** 280,286 ****
if not is_module:
exec code in module.__dict__
! return module
def _load_tail(self, m, parts):
"""Import the rest of the modules, down from the top-level module.
--- 280,287 ----
if not is_module:
exec code in module.__dict__
! # fetch from sys.modules instead of returning module directly.
! return sys.modules[fqname]
def _load_tail(self, m, parts):
"""Import the rest of the modules, down from the top-level module.