Skip to content

Commit dee017c

Browse files
committed
fix: add freeze_support to handle multiprocessing in PyInstaller builds
Ensure that helper processes spawned by multiprocessing (e.g., for HuggingFace downloads) do not accidentally re-execute the main CLI logic when running the frozen binary.
1 parent d066f5a commit dee017c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/open_codex/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,6 @@ def main():
8585
one_shot_mode(prompt)
8686

8787
if __name__ == "__main__":
88+
from multiprocessing import freeze_support
89+
freeze_support()
8890
main()

0 commit comments

Comments
 (0)