Edit the .py file using VSCode or something similar, add this line below the import os...., and above any other code: os.chdir(os.path.dirname(os.path.abspath(__file__))) Then, run.
Edit the .py file using VSCode or something similar, add this line below the import os...., and above any other code:
os.chdir(os.path.dirname(os.path.abspath(file)))
Then, run.