program path

kpop snag at jool.po
Sat Jun 7 21:08:49 EDT 2003


"Peter Hansen" <peter at engcorp.com> wrote in message
news:3EE28ABC.7D6DB511 at engcorp.com...
> kpop wrote:
> >
> > how do i get the path of the python script thats running  from within
> > python.
>
> Do you mean the path of any Python module that is imported, or just
> the main script.  For the latter, use sys.argv[0].
>
> -Peter
no just the main script thanks peter







More information about the Python-list mailing list