I'm pretty sure that the one in the current directory gets imported first. 
However, it is much simpler to just change the name of the module in the 
current directory.

JS

> hello there,
>
> if i have a module that is in the same directory as the file that imports
> it,
> but that module has the same name as a module in my python path, which one
> gets imported ?
>
> i ask because i want to do some work on the module, but dont want to mess
> with my stable
> one in site-packages.
> so i want to import it from the local directory only.
>
> thanks
>
> shawn

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to