Re: Question about details of __import__

2007-03-29 Thread Mitko Haralanov
On Thu, 29 Mar 2007 16:45:08 -0300 "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > If you think that Python got confused and has two duplicate modules, try > to find them in sys.modules. Perhaps under the names 'log' and 'xxx.log' > Or, using print, try to see *when* your global variable is res

Re: Question about details of __import__

2007-03-29 Thread Gabriel Genellina
En Thu, 29 Mar 2007 15:56:54 -0300, Mitko Haralanov <[EMAIL PROTECTED]> escribió: >> You may check if this is the case, looking at sys.modules > > I did look at sys.modules but I wasn't sure what to look for. There was > a log module in the list but what else should I look for? If you think tha

Re: Question about details of __import__

2007-03-29 Thread Mitko Haralanov
On Thu, 29 Mar 2007 15:43:46 -0300 "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > Surely there is a ./resources/__init__.py too? There sure is: ./resources/__init__.py is: __all__ = ['simple', 'other'] > You may check if this is the case, looking at sys.modules I did look at sys.modules but I

Re: Question about details of __import__

2007-03-29 Thread Gabriel Genellina
En Thu, 29 Mar 2007 14:42:33 -0300, Mitko Haralanov <[EMAIL PROTECTED]> escribió: > I have three modules that a comprising the problem: > ./core.py > ./log.py > ./resources/simple/__init__.py Surely there is a ./resources/__init__.py too? > The problem that I am seeing is that 'global_info' in

Question about details of __import__

2007-03-29 Thread Mitko Haralanov
Hi all, I am going to do my best to describe the issue that I am having and hopefully someone can shed some light on it: I have three modules that a comprising the problem: ./core.py ./log.py ./resources/simple/__init__.py core.py looks something like this (simplified version): import log class