import osprint 'os.getcwd() is:',os.getcwd()print 'os.__file__ is',os.__file__print 'os.path.dirname(os.__file__) is',os.path.dirname(os.__file__)print '__file__ is:', __file__print 'os.path.dirname(__file__) is:', os.path.dirname(__file__)
Standard input is empty
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:
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!