Skip to content

Commit

Permalink
Show terminal and multiprocessing freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePromidius committed Mar 2, 2024
1 parent 373ddc4 commit f7a8aa5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyinstaller/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, scripts):


class EXE(EXE_):
def __init__(self, a, pyz, name,console=False):
def __init__(self, a, pyz, name,console=True):
super().__init__(
pyz,
a.scripts,
Expand Down
3 changes: 3 additions & 0 deletions src/FMD3_API/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import multiprocessing

import uvicorn
from FMD3_API.app import app



if __name__ == "__main__":
multiprocessing.freeze_support()
uvicorn.run(app, host="0.0.0.0", port=8000)

3 changes: 3 additions & 0 deletions src/FMD3_Tkinter/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import argparse
import multiprocessing

from FMD3_Tkinter.run_local import run_local
from FMD3_Tkinter.run_web_client import run_web

Expand All @@ -20,4 +22,5 @@ def main():


if __name__ == "__main__":
multiprocessing.freeze_support()
main()
2 changes: 2 additions & 0 deletions src/FMD3_Tkinter/run_local.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import multiprocessing
import os
import signal

Expand All @@ -17,4 +18,5 @@ def run_local():
app.mainwindow.protocol("WM_DELETE_WINDOW",FMD3.core.execute_termination_handler)
app.run()
if __name__ == '__main__':
multiprocessing.freeze_support()
run_local()
3 changes: 3 additions & 0 deletions src/FMD3_Tkinter/run_web_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import multiprocessing

import FMD3_Tkinter
from FMD3.core.scheduler import start_scheduler_loop

Expand All @@ -15,4 +17,5 @@ def run_web():
app.run()

if __name__ == '__main__':
multiprocessing.freeze_support()
run_web()

0 comments on commit f7a8aa5

Please sign in to comment.