pyo contains absolute paths
Peter Hansen
peter at engcorp.com
Sat Jul 9 10:22:06 EDT 2005
David Siroky wrote:
> When I "compile" my python files with "python -OO ...." into pyo files
> then they still contain absolute paths of the source files which is
> undesirable for me. How can I deal with that?
Don't do that?
Delete the pyo files?
Stop using Python?
I could guess at a few more possibilities, but since you don't actually
say what you *want* to happen, just what you don't want to happen, there
are an infinite number of ways to satisfy you right now. <wink>
(Hint #1: absolute paths are always, AFAIK, put into the .pyc or .pyo
files.)
(Hint #2: maybe explaining why you don't want this to happen would help
too, since that will probably determine the "best" solution.)
-Peter
More information about the Python-list
mailing list