compile-file.py: preserve source file location

This commit is contained in:
rocky 2020-01-30 21:09:34 -05:00
parent 6466d30e2e
commit 31714d3420

View File

@ -19,6 +19,6 @@ bytecode = "%s-%s.pyc" % (basename, PY_VERSION)
import py_compile
print("compiling %s to %s" % (source, bytecode))
py_compile.compile(source, bytecode, 'exec')
py_compile.compile(source, bytecode, source)
# import os
# os.system("../bin/uncompyle6 %s" % bytecode)