¡@

Home 

python Programming Glossary: show_where

Python - Find Path to File Being Run

http://stackoverflow.com/questions/1296501/python-find-path-to-file-being-run

script cwd is repr os.getcwd import whereutils whereutils.show_where C junk so type python26 lib site packages whereutils.py import.. python26 lib site packages whereutils.py import sys os def show_where print show_where sys.argv 0 is repr sys.argv 0 print show_where.. packages whereutils.py import sys os def show_where print show_where sys.argv 0 is repr sys.argv 0 print show_where __file__ is repr..