mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 13:09:49 +00:00
compile-file.py: preserve source file location
This commit is contained in:
parent
6466d30e2e
commit
31714d3420
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user