Explorar o código

#584 add freeze_support for pyinstaller

Falko Schindler %!s(int64=2) %!d(string=hai) anos
pai
achega
0c06dfa7f1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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()