os.getcwd()

Return a string representing the current working directory.

Related Reading

os — Miscellaneous operating system interfaces