#154: Remove full paths from .pyc/.pyo files
--------------------------+-------------------------------------------------
Reporter: giovannibajo | Owner: giovannibajo
Type: defect | Status: new
Priority: normal | Milestone: PyInstaller 1.5
Component: PyInstaller | Version: PyInstaller 1.3
Severity: minor | Keywords:
--------------------------+-------------------------------------------------
PyInstaller bundles .pyc/.pyo files as found in the build system. Those
files contain the fully-qualified paths of the original source code files,
and those paths are shown for instance in tracebacks.
It would be better if PyInstaller stripped those paths, though not
completely. For instance, the following path:
{{{
/Users/FooBar/series60-
remote/trunk/pc/build/pyi.darwin/series60_remote.darwin/outPYZ1.pyz/lib.device
}}}
should probably become something like:
{{{
series60_remote.darwin/outPYZ1.pyz/lib.device
}}}
To do this, probably it is necessary to:
1. Unmarshal each .pyc into a live data structure
1. Go through the code data structure, finding all occurrences of the
paths and replacing them.
1. Marshal the .pyc file again into a binary stream
--
Ticket URL: <http://www.pyinstaller.org/ticket/154>
Pyinstaller <http://www.pyinstaller.org>
PyInstaller Project
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.