[Python-bugs-list] [ python-Bugs-622953 ] import order changes with freeze

noreply@sourceforge.net noreply@sourceforge.net
Mon, 14 Oct 2002 03:43:16 -0700


Bugs item #622953, was opened at 2002-10-14 12:43
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=622953&group_id=5470

Category: Demos and Tools
Group: Python 2.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Pim Buurman (pimbuur)
Assigned to: Nobody/Anonymous (nobody)
Summary: import order changes with freeze

Initial Comment:
When you have simple .py files in packages, when you
do:
from mainp.subp import submod
both mainp and mainp.subp are imported,
i.e. mainp.__init__.py and mainp.subp.__init__.py are 
interpreted.
If you have frozen the package (Tools/freeze), 
mainp.subp.submod is found at once, and mainp and 
mainp.subp are not imported.
This breaks the code for more complex situations, where the 
__init__ does contain vital initialization code.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=622953&group_id=5470