When I run the following script in IDLE
import os
print(os.getcwd())
I get output as
D:\testtool
but when I run from cmd prompt, I get
c:\Python33>python D:\testtool\current_dir.py
c:\Python33
How do I get same result which I got using IDLE ?