diff --git a/main.py b/main.py index c1947e9..d6713f9 100644 --- a/main.py +++ b/main.py @@ -24,6 +24,7 @@ inpDir = "C:/inpfiles/" tmpDir = "C:/tmpfiles/" lockedPrjs = {} +isSimulaion = False if not os.path.exists(inpDir): os.mkdir(inpDir) @@ -144,7 +145,6 @@ async def fastapi_dump_inp(network: str, inp: str) -> bool: dump_inp(network, inp) return True -isSimulaion = False # 必须用这个PlainTextResponse,不然每个key都有引号 @app.get("/runproject/", response_class = PlainTextResponse) async def fastapi_run_project(network: str) -> str: