Hi, is it possible to access the source code the PyInstaller executable was built from during the execution?
The manual says: "The bundled app does not include any source code. However, PyInstaller bundles compiled Python scripts (.pyc files)." But that's not the truth as you can see with archive_viewer.py. Basically I would like to trace execution by displaying line number and the corresponding code. This is possible via sys.settrace which gives you the line number via frame.f_lineno and the source code line via inspect.getframeinfo(frame).code_context. Unfortunately code_context is None when the PyInstaller executable is run. So I get the line number but not the code (of which Python has to know - where would it get the line number from - which is the same as in the .py file). So how can I access the source code (or the source code file)? Thorsten -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyinstaller. For more options, visit https://groups.google.com/groups/opt_out.
