import via pathname

Steven Bethard steven.bethard at gmail.com
Mon Jun 20 11:57:35 EDT 2005


passion_to_be_free at hotmail.com wrote:
> Ahh....I see.  I played around with the sys.path function...and it
> looks like python automatically looks in the same directory as my
> script first.  Then is searches to all the other pre-defined paths.  So
> it works for me to just keep my main script in the same directory as
> the two modules I'm using.  

Yup, as long as you're not worried about having too many modules around, 
that should work fine. =)

STeVe



More information about the Python-list mailing list