I want to import multiple files which will always be in the same directory as the script itself. But the script might be copied and pasted to somewhere else. I know how to set and change the working directory but I don't know how to set the working directory dynamically/automatically to where the .py
file is located and run from.
The path must not be hard-coded.
I've seen Changing current working directory to the directory from where script is running (Python) but there is not really an answer.