更新 epanet linux 版本,修正数值读取错误的问题;新增 api linux 封装版本;更新 requirements.txt 适配 linux;更新 main.py、epanet.py 以适配 linux 环境

This commit is contained in:
2026-01-05 17:28:55 +08:00
parent ee642be6b8
commit b1727ecceb
79 changed files with 145 additions and 3440 deletions

16
main.py
View File

@@ -62,16 +62,16 @@ NODE_COUNT = 0
LINK_COUNT = 2
prjs = []
inpDir = "C:/inpfiles/"
tmpDir = "C:/tmpfiles/"
proj_name = project_info.name
lockedPrjs = {}
# inpDir = "C:/inpfiles/"
# tmpDir = "C:/tmpfiles/"
# proj_name = project_info.name
# lockedPrjs = {}
if not os.path.exists(inpDir):
os.mkdir(inpDir)
# if not os.path.exists(inpDir):
# os.mkdir(inpDir)
if not os.path.exists(tmpDir):
os.mkdir(tmpDir)
# if not os.path.exists(tmpDir):
# os.mkdir(tmpDir)
# 全局依赖项