[cx-freeze-users] Patch to remove absolute path from pyc files, only relative path names in traceba
Brought to you by:
atuining
From: Wolfgang L. <wl...@fl...> - 2012-10-26 13:00:50
|
Hi, long missed this feature present in bbfreeze: automatic pathname rewriting pathnames in tracebacks are replaced with relative pathnames (i.e. if you import package foo.bar from /home/jdoe/pylib/ tracebacks generated from functions in foo.bar will not show your local path /home/jdoe/pylib/foo/bar.py. They will instead show foo/bar.py) For Windows this is even worse because you will get the full path with drive letter in a traceback. Attached is the change to freezer.py to do the same as bbfreeze. Copied the function from bbfreeze. Hope this patch helps. Regards, Wolfgang |