xxxxxxxxxx
In [8]: import os
In [9]: os.getcwd()
Out[9]: '/home/rockwool'
In [10]: pwd
Out[10]: '/home/rockwool'
xxxxxxxxxx
You can use the following code snippet to check the current directory:
import os
current_directory = os.getcwd()
print("Current Directory:", current_directory)