How do i get the path of a the python script i am running in? i was doing dirname(sys.argv[0]) however on mac i got only the filename and not the full path as i do on windows.
No matter where my application is launched from, i want to open files that are relative to my script file(s) which is why i need the directory path.