Use the os.getcwd() function:

print(os.getcwd())