Changeset 339

Show
Ignore:
Timestamp:
Tue Nov 27 06:48:11 2007
Author:
giovannibajo
Message:

Improve compatibility with standard Python imports (imports that trigger exceptions)

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/iu.py

    r319 r339  
    380 380                 return None  
    381 381         else:  
      382             parent = None  
    382 383             # now we're dealing with an absolute import  
    383 384             for director in self.metapath:  
     
    409 410                         if not reload:  
    410 411                             del sys.modules[fqname]  
      412                             if hasattr(parent, nm):  
      413                                 delattr(parent, nm)  
    411 414                     raise  
    412 415             if fqname == 'thread' and not self.threaded:  
  • trunk/doc/CHANGES.txt

    r322 r339  
    26 26  + Fix a stupid bug with modules importing optparse (under Linux) (thanks  
    27 27    to Louai Al-Khanji).  
      28  + Under Python 2.4+, if an exception is raised while importing a module  
      29    inside a package, the module is now removed from the parent's  
      30    namespace (to match the behaviour of Python itself).  
    28 31  
    29 32 PyInstaller 1.3