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 code object will contain the same copy of the absolute path, so you can't save that much space. There are probably ways to make .pycs that have a path of "", if you really want (see py_compile in the stdlib). Cheers, mwh -- I located the link but haven't bothered to re-read the article, preferring to post nonsense to usenet before checking my facts. -- Ben Wolfson, comp.lang.python -- http://mail.python.org/mailman/listinfo/python-list