SyntaxFix
Write A Post
Hire A Developer
Questions
os.path.realpath(__file__) will give you the path of the current file, resolving any symlinks in the path. This works fine on my mac.
os.path.realpath(__file__)