program path

Mike C. Fletcher mcfletch at rogers.com
Sun Jun 8 14:28:11 EDT 2003


Shows up with the full path on my Win2K box:

P:\OpenGLContext\tests>sysargv
['P:\\sysargv.py']

P:\OpenGLContext\tests>type p:\sysargv.py
import sys
print sys.argv

Where p:\ is on the path.

HTH,
Mike

Peter Hansen wrote:
...

>Thanks Gerhard, but could you please try running it via
>a directory available only via PATH?
>
>Explicitly specifying the directory should always lead
>to sys.argv[0] containing the "as invoked" name, but we're
>not sure what would happen if it's found via the PATH.
>
>-Peter
>  
>
_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/








More information about the Python-list mailing list