fork download
  1. import os
  2. print 'os.getcwd() is:',os.getcwd()
  3. print 'os.__file__ is',os.__file__
  4. print 'os.path.dirname(os.__file__) is',os.path.dirname(os.__file__)
  5. print '__file__ is:', __file__
  6. print 'os.path.dirname(__file__) is:', os.path.dirname(__file__)
Success #stdin #stdout 0.01s 7692KB
stdin
Standard input is empty
stdout
os.getcwd() is: /home/VhFVme
os.__file__ is /usr/lib/python2.7/os.pyc
os.path.dirname(os.__file__) is /usr/lib/python2.7
__file__ is: prog
os.path.dirname(__file__) is: