pyo contains absolute paths

David Siroky dsiroky at email.cz
Mon Jul 11 15:06:44 CEST 2005


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
> such? If so, I wouldn't do that in the first place. Python's compiled
> files might be version/architecture dependant.
> 
> -NcF

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