+2 votes
in Programming Languages by (7.8k points)
What is the equivalent of Linux command 'pwd' in Python to see the current working directory?

1 Answer

0 votes
by (15.1k points)

To get the current working directory/folder using Python, you need to use getcwd() function of os module.

>>> import os
>>> os.getcwd()

...