I want to be able to hash itself each time it is run. Is this possible without having to give the path to the script? I can see 2 ways to do this. The first way is to hash the source Python text file. The second way is to hash the compiled bytecode.
I see myself going with choice 2 so that raises a couple of other questions:
- Can a script determine where its compiled bytecode is from within the script?
- I'll ask this in a separate question.