File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11[project ]
22name = " ad_sdl.wei"
3- version = " 0.7.0 "
3+ version = " 0.7.1 "
44description = " The Rapid Prototyping Laboratory's Workflow Execution Interface."
55authors = [
66 {
name =
" Rafael Vescovi" ,
email =
" [email protected] " },
Original file line number Diff line number Diff line change 11"""The server that takes incoming WEI flow requests from the experiment application"""
22
33from contextlib import asynccontextmanager
4+ from pathlib import Path
45from typing import Dict
56
67from fastapi import FastAPI
@@ -49,7 +50,9 @@ async def lifespan(app: FastAPI) -> None: # type: ignore[misc]
4950 app .include_router (module_routes .router , prefix = "/modules" )
5051 app .include_router (workcell_routes .router , prefix = "/workcells" )
5152 app .include_router (workcell_routes .router , prefix = "/wc" )
52- app .mount ("/" , StaticFiles (directory = "wei/src/ui/dist" , html = True ))
53+ ui_files_path = Path ("wei" ) / "src" / "ui" / "dist"
54+ if ui_files_path .exists ():
55+ app .mount ("/" , StaticFiles (directory = ui_files_path , html = True ))
5356 EventHandler .initialize_diaspora ()
5457
5558 if Config .autostart_engine :
You can’t perform that action at this time.
0 commit comments