소스 검색

#584 add freeze_support for pyinstaller

Falko Schindler 2 년 전
부모
커밋
0c06dfa7f1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      nicegui/native_mode.py

+ 1 - 0
nicegui/native_mode.py

@@ -28,6 +28,7 @@ def activate(url: str, title: str, width: int, height: int, fullscreen: bool) ->
             time.sleep(0.1)
         _thread.interrupt_main()
 
+    multiprocessing.freeze_support()
     process = multiprocessing.Process(target=open_window, args=(url, title, width, height, fullscreen), daemon=False)
     process.start()
     Thread(target=check_shutdown, daemon=True).start()