You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
compile-file.py: preserve source file location
This commit is contained in:
@@ -19,6 +19,6 @@ bytecode = "%s-%s.pyc" % (basename, PY_VERSION)
|
|||||||
|
|
||||||
import py_compile
|
import py_compile
|
||||||
print("compiling %s to %s" % (source, bytecode))
|
print("compiling %s to %s" % (source, bytecode))
|
||||||
py_compile.compile(source, bytecode, 'exec')
|
py_compile.compile(source, bytecode, source)
|
||||||
# import os
|
# import os
|
||||||
# os.system("../bin/uncompyle6 %s" % bytecode)
|
# os.system("../bin/uncompyle6 %s" % bytecode)
|
||||||
|
Reference in New Issue
Block a user