Commit 16ad8024 authored by Jim Fulton's avatar Jim Fulton

Fixed bug in handling __module_aliases__

parent f68b2df5
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Application support __doc__='''Application support
$Id: Application.py,v 1.81 1998/12/18 21:46:07 jim Exp $''' $Id: Application.py,v 1.82 1998/12/19 15:43:46 jim Exp $'''
__version__='$Revision: 1.81 $'[11:-2] __version__='$Revision: 1.82 $'[11:-2]
import Globals,Folder,os,regex,sys,App.Product, App.ProductRegistry import Globals,Folder,os,regex,sys,App.Product, App.ProductRegistry
...@@ -365,7 +365,7 @@ def import_products(): ...@@ -365,7 +365,7 @@ def import_products():
try: try:
product=__import__(pname, global_dict, global_dict, silly) product=__import__(pname, global_dict, global_dict, silly)
if hasattr(product, '__module_aliases__'): if hasattr(product, '__module_aliases__'):
for k, v in product.__aliases__: for k, v in product.__module_aliases__:
if not sys.modules.has_key(k): if not sys.modules.has_key(k):
sys.modules[k]=v sys.modules[k]=v
except: except:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment