This commit is contained in:
DingZQ
2023-10-20 23:37:57 +08:00
parent 8ac8822563
commit 3ed7e5a8bf

View File

@@ -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: