how to get the path of a module (myself) ?
Stef Mientki
stef.mientki at gmail.com
Tue Jun 2 15:24:28 EDT 2009
> The same rule applies for your modules. As a general rule, NEVER say:
>
> execfile('mymodule.py')
>
> instead do:
>
> import mymodule
> mymodule.some_function()
> mymodule.another_function()
>
>
> (There are exceptions, but if you need to ask what they are, you're not
> ready to learn them! *wink*)
>
>
>
hi Steven,
maybe you hit the nail right on his head.
But I finally want to release my program, with or without proper
imports, but working correctly.
And I'll leave the "import details" to some other guru.
thanks,
Stef
More information about the Python-list
mailing list