[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Automatic Import Problem



On Wed, Feb 13, 2008 at 03:04:48PM -0500, Kris Schnee wrote:
> I noticed a problem over lunch. I was trying to re-incorporate that 
> little 2D tiled graphics engine into my latest project (is there a 
> commented version of that super-fast one someone posted?), and found 
> that it seemed to be importing my "art" module, even though that module 
> wasn't in the same directory. I think that Python was loading _a_ 
> version of "art.py" from _somewhere_, and the fact that I can't tell 
> from where bothers me. What are the circumstances in which this happens?

try this:

  import art
  print art.__path__

And see if that clarifies which art module is getting loaded.

---
James Paige