How can I retrieve the path of the current script I'm running? I don't want to deal at any time with the name of the script (so things like "os.path.realpath(myFileName.py)" are not good). I don't want to have to input the filename manually. I just need the directory of the script I'm currently running, without having to care about its name. Is there not some kind of command like "dir = this.path" something like this in the idea?
I need to get this information for a very large number of scripts, so I don't want to write the name of each one. Maybe there is a command to get the name of the current script to combine with the previous command?