I'm making an evaluator for a type of extension called '.way'.
To open the file, you have to go to the files properties, select 'Open with Way.exe' and then open the file.
This is Way.exe's code:
import os
currentname = os.path.basename(__file__)
print(currentname)
When I run test.way, it prints 'Way.py' (The script that the .exe file runs) instead of 'test.way'. How do I get it to print the current file's name?