lets assume i have a Folder "myProject" with a script "mySkript.py" and a config file "myConfig.py".
When calling the script from within "myProject" i would do something like this:
with open("myConfig") as configurationRawData:
# do something
Now lets assume i don't call the script from "myProject" folder but from "User/desktop". In this case, the open command will not actually find "myConfig". I am looking to make my skript use it's own path as root path and inherit this property to every other script it might call during execution. Any ideas?