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
3bac59701b
commit
3c379402c8
@ -16,6 +16,8 @@ def do_compile(src_path, dst_path):
|
|||||||
assert os.system(cmd) == 0
|
assert os.system(cmd) == 0
|
||||||
|
|
||||||
if os.path.isfile(source_dir):
|
if os.path.isfile(source_dir):
|
||||||
|
if output_dir.endswith('.py'):
|
||||||
|
output_dir += 'c'
|
||||||
do_compile(source_dir, output_dir)
|
do_compile(source_dir, output_dir)
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user