SyntaxFix
Write A Post
Hire A Developer
Questions
This worked for me (and I found it via the this stackoverflow question)
os.path.realpath(__file__)