SV: Path question

Lars Lundstedt lars.lundstedt at telia.com
Wed May 10 06:28:42 CEST 2000


Worked like a charm...thak you...

William Park <parkw at better.net> skrev i
diskussionsgruppsmeddelandet:20000509102123.A23868 at better.net...
> On Tue, May 09, 2000 at 05:18:22PM +0000, Lars Lundstedt wrote:
> > A question:
> >
> > When I run as script, is there a way for the script to get the path of
the
> > file it's in? Some sort of system variable maybe...
>
> What you want are
>     sys.argv[0]
>     os.environ['PWD']
>
> --William
>





More information about the Python-list mailing list