瀏覽代碼

#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()