Rename parser to inp_io

This commit is contained in:
Joey Wang
2023-03-09 08:47:27 +08:00
parent 28b2449487
commit 5e6b3d02df
3 changed files with 4 additions and 4 deletions

View File

@@ -6,8 +6,8 @@ import json
from typing import Any
sys.path.append("..")
from api import project
from api import parser
from .epanet2_ec import *
from api import inp_io
def _verify_platform():
_platform = platform.system()
@@ -234,7 +234,7 @@ def run_project(name: str) -> str:
dir = os.path.abspath(os.getcwd())
db_inp = os.path.join(os.path.join(dir, 'db_inp'), name + '.db.inp')
parser.dump_inp(name, db_inp)
inp_io.dump_inp(name, db_inp)
input = name + '.db'
exe = os.path.join(os.path.join(dir, 'epanet'), 'runepanet.exe')