mirror of
https://github.com/pocketpy/pocketpy
synced 2026-02-04 06:30:17 +00:00
Update compileall.py
This commit is contained in:
parent
3e182d5c6b
commit
f3bf7c6321
@ -12,8 +12,9 @@ output_dir = sys.argv[3]
|
||||
def do_compile(src_path, dst_path):
|
||||
assert os.path.isfile(src_path)
|
||||
cmd = f'{pkpy_exe} --compile "{src_path}" "{dst_path}"'
|
||||
print(src_path)
|
||||
assert os.system(cmd) == 0
|
||||
if os.system(cmd) != 0:
|
||||
print(src_path)
|
||||
exit(1)
|
||||
|
||||
if os.path.isfile(source_dir):
|
||||
if output_dir.endswith('.py'):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user