diff --git a/compileall.py b/compileall.py index 561a4c44..d010aa7b 100644 --- a/compileall.py +++ b/compileall.py @@ -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'):