Changeset 51
- Timestamp:
- Tue Sep 13 19:41:54 2005
- Files:
-
- trunk/iu.py (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/iu.py
r43 r51 276 276 if importernm: 277 277 if hasattr(_sys_modules_get(importernm), '__path__'): 278 # If you use the "from __init__ import" syntax, the package 279 # name will have a __init__ in it. We want to strip it. 280 if importernm[-len(".__init__"):] == ".__init__": 281 importernm = importernm[:-len(".__init__")] 278 282 contexts.insert(0,importernm) 279 283 else:
