How can module determine its own path?
Robert Kern
robert.kern at gmail.com
Fri Oct 30 13:40:03 EDT 2009
On 2009-10-30 12:19 PM, kj wrote:
> How can a module determine the path of the file that defines it?
> (Note that this is, in the general case, different from sys.argv[0].)
__file__
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list