python myscript.py
is a recipe for disaster.
__code__
object). It’s also fragile if you have to work across Python versions - but in the context of a briefcase app, you’re shipping the interpreter that will be used, so that risk is virtually zero.