Selaa lähdekoodia

#584 add freeze_support for pyinstaller

Falko Schindler 2 vuotta sitten
vanhempi
säilyke
0c06dfa7f1
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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()