module imports and st_mtime

2009-11-04 Thread tow
/autoreload.py) Some of the code running under this django server imports simplejson, the C-implemented module of which has been put at /Users/tow/.python- eggs/simplejson-2.0.9-py2.5-macosx-10.5-i386.egg-tmp/simplejson/ _speedups.so This hasn't been touched since it was installed: ls -l ~/.python-eggs

Re: module import search path strangeness

2008-08-12 Thread tow
On Aug 12, 4:59 am, Gabriel Genellina [EMAIL PROTECTED] wrote: En Mon, 11 Aug 2008 19:19:19 -0300, tow [EMAIL PROTECTED]   escribi : I have a python script (part of a django application, if it makes any difference) which is exhibiting the following behaviour: import my_module # succeeds

Re: module import search path strangeness

2008-08-12 Thread tow
On Aug 12, 9:56 am, Peter Otten [EMAIL PROTECTED] wrote: tow wrote: Basically, I had thought that import and imp.find_module used exactly the same search path, but the above example shows that at least in this circumstance they don't; import is picking up additional search paths from

Re: module import search path strangeness

2008-08-12 Thread tow
On Aug 12, 4:59 pm, Peter Otten [EMAIL PROTECTED] wrote: tow wrote: On Aug 12, 9:56 am, Peter Otten [EMAIL PROTECTED] wrote: tow wrote: Basically, I had thought that import and imp.find_module used exactly the same search path, but the above example shows that at least

module import search path strangeness

2008-08-11 Thread tow
; the directory containing my_module is not in sys.path (though the my_module directory itself is). More puzzlingly, printing out my_module.__file__ gives: /home/tow/test/my_module/../my_module/__init__.pyc I don't really understand what the .. is doing in there. Can someone explain what I'm missing here