-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
20 lines (15 loc) · 839 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Import the backend
from src.stacking_setup.components.stacking_backend.stacking_setup import StackingSetupBackend
# Import the connection method
from multiprocessing import Pipe # Only needed for the pipe connection
from src.stacking_setup.components.stacking_middleware.pipeline_connection import PipelineConnection as Connection
# Import the ui
from src.stacking_setup.components.stacking_frondend.gui.main import main as ui_main
# from src.stacking_setup.components.stacking_frondend.tui.main import main as ui_main
if __name__ == '__main__':
# Create the chosen middleware method and start the backend
par_con, ch_con = Pipe()
#backend = StackingSetupBackend(Connection(par_con, "BACKEND"))
#backend.start_backend()
# Run the ui main function
ui_main(Connection(ch_con, "FRONTEND"), init_backend=False)