0 votes
1 view
in Python by (22.4k points)

When I run the following script in IDLE

import os

print(os.getcwd())

I get the 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 the same result which I got using IDLE?

Please log in or register to answer this question.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...