How to check what is the current working directory with os in Python
• 1 minIt might come in handy to be able to check what is the directory we are running the script from.
Especially when you try to find that one file that contains your data or even the library you are desperately trying to run.
Here is the code
Here you are! You now know how to check what is the current working directory with os in Python.
More on fundamentals
If you want to know more about Python fundamentals without headaches... check out the other articles I wrote by clicking just here: