The file executing

Benjamin musiccomposition at gmail.com
Tue Jul 3 15:47:01 CEST 2007


On Jul 2, 9:47 pm, Justin Ezequiel <justin.mailingli... at gmail.com>
wrote:
> On Jul 3, 9:40 am, Benjamin <musiccomposit... at gmail.com> wrote:
>
> > How does one get the path to the file currently executing (not the
> > cwd). Thank you
>
> os.path.dirname(sys.argv[0])
The returns the file that was called first, but not the one currently
executing...




More information about the Python-list mailing list