pyo contains absolute paths
David Siroky
dsiroky at email.cz
Mon Jul 11 09:06:43 EDT 2005
V Sat, 09 Jul 2005 10:22:06 -0400, Peter Hansen napsal(a):
> 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
I want to write a commercial application in Python and I don't want the
customer to see the source code and absolute paths of my modules which
have btw. the same base path as the main module so I would expect only
relative paths in the compiled files.
David
More information about the Python-list
mailing list