[Tutor] about importing a module
Tiger12506
keridee at jayco.net
Fri Jul 20 00:05:47 CEST 2007
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
More information about the Tutor
mailing list