Why do python .pyc
files contain the absolute path of their source code, instead of a relative path or something else?
A typical __init__.pyc
from Python 2.7 on Ubuntu:
\�\�\�Oc@sddlTdS(i\�\�\�\�(t*N(tdbapi2(((s&/usr/lib/python2.7/sqlite3/__init__.py<module>s
To give the information in tracebacks. See for instance http://docs.python.org/library/compileall#cmdoption-compileall-d
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.