I found this question that has answers that work on mac, but do they work on Windows, Linux, etc? I am referring specifically to os.path.realpath(__file__)
or os.path.realpath('myPythonFile.py')
.
I apologize for this question being so obvious to figure out but I don't have access to non-mac computers and so can't test it myself.