Really, really annoying problem
Steve Juranich
sjuranic at condor.ee.washington.edu
Thu Sep 21 01:31:42 EDT 2000
On Wed, 20 Sep 2000, it was written:
> People seem to be missing the point!!
>
> create a module with the code "print sys.argv[0]" to see what i mean
>
Lookit:
chester (steve)$ cat foo.py
#!/usr/bin/env python
import os, sys
print sys.argv[0]
print os.getcwd() + os.sep + sys.argv[0]
chester (steve)$ python foo.py
foo.py
/home/steve/foo.py
I know it's not Windoze(tm), but that's the beauty of using the builtin
modules... portability. If we're not getting at the problem, tell us more
specifically what you'd like to do.
----------------------------------------------------------------------
Stephen W. Juranich sjuranic at ee.washington.edu
Electrical Engineering http://students.washington.edu/sjuranic
University of Washington http://rcs.ee.washington.edu/ssli
More information about the Python-list
mailing list