On Thu, May 7, 2009 at 21:12, Thomas Robitaille <thomas.robitai...@gmail.com> wrote: > Hello, > > I'm having a strange issue, and I've managed to reduce it to a simple > problem. I created the following file structure: > > - a directory named scripts/ > - a script called scripts/inspect.py > - a script called scripts/test.py > > inspect.py contains just 'pass' and test.py contains 'from > matplotlib.pyplot import *'. When I run > > python scripts/test.py > > I get the traceback included below. Basically, it looks like python is > trying to import my inspect.py script instead of one that comes with > matplotlib. Is this just down to the design of python?
the current directory and the one containing the executed script are by default imported first than standard and 3rd part modules. > Is there > anything I can do to avoid this problem in future apart from renaming > inspect.py to another name? rename it :) or maybe changing the os.path variable forcing to some values. Cheers, -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users