Re: import and reimport issues

2007-06-11 Thread Tarek
On Jun 11, 6:38 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: [cut] > > This is OK for most of the code but in my case it leads to a problem: > > the third party app that is initialized in a global variable locks a > > file, and tries to relock it again as the __import__ is recalled: > > Isn

Re: import and reimport issues

2007-06-11 Thread Malcolm Tredinnick
On Mon, 2007-06-11 at 16:13 +, Tarek wrote: > Hello, > > I have in one of my package, registered as an INSTALLED_APPS, a > special global variable in the __init__.py that opens some ressources. > > The problem is that the packages seems to be loaded twice, with > __import__: > /Library/Fra

import and reimport issues

2007-06-11 Thread Tarek
Hello, I have in one of my package, registered as an INSTALLED_APPS, a special global variable in the __init__.py that opens some ressources. The problem is that the packages seems to be loaded twice, with __import__: /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packag