Re: pyo contains absolute paths

2005-07-11 Thread Daniel Dittmar
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? Use the script compileall.py (in Lib) to compile all the files. This script has an opt

Re: pyo contains absolute paths

2005-07-11 Thread Michael Hudson
David Siroky <[EMAIL PROTECTED]> writes: > Hi! > > 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? Are you trying to save space? In 2.4 and later each cod

Re: pyo contains absolute paths

2005-07-11 Thread David Siroky
V Sat, 09 Jul 2005 11:48:51 -0700, ncf napsal(a): > Python is compiling the files with absolute paths because it is much > faster to load a file when you know where it is, than to have to find > it and then load it. > > I'm guessing you're wondering this so you can distribute it compiled or > suc

Re: pyo contains absolute paths

2005-07-11 Thread David Siroky
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? >

Re: pyo contains absolute paths

2005-07-09 Thread ncf
Python is compiling the files with absolute paths because it is much faster to load a file when you know where it is, than to have to find it and then load it. I'm guessing you're wondering this so you can distribute it compiled or such? If so, I wouldn't do that in the first place. Python's compi

Re: pyo contains absolute paths

2005-07-09 Thread Peter Hansen
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