FW: Path to script?

Rolander, Dan Dan.Rolander at marriott.com
Thu Jan 25 14:40:57 EST 2001


Never mind. I figured it out. sys.path[0].

Dan

>  -----Original Message-----
> From: 	Rolander, Dan  
> Sent:	Thursday, January 25, 2001 2:14 PM
> To:	'python-list at python.org'
> Subject:	Path to script?
> 
> Is there a way for a script to determine where it is located, i.e. the
> absolute path to the script? If I execute a script from some other current
> working directory, I want the script to know where it is.
> 
> Thanks,
> Dan
> 




More information about the Python-list mailing list