How to get the current working directory using python 3?
It seems that IDLE changes its current working dir to location of the script that is executed, while when running the script using cmd doesn’t do that and it leaves CWD as it is. To change current working dir to the one containing your script you can use: The __file__ variable is available only if you execute … Read more