Start to support version read/write
This commit is contained in:
@@ -246,7 +246,7 @@ def parse_file(project: str, inp: str) -> None:
|
||||
print(f"Total (in second): {(end-start).seconds}(s)")
|
||||
|
||||
|
||||
def read_inp(project: str, inp: str) -> bool:
|
||||
def read_inp(project: str, inp: str, version: str = '3') -> bool:
|
||||
if is_project_open(project):
|
||||
close_project(project)
|
||||
|
||||
@@ -267,7 +267,7 @@ def read_inp(project: str, inp: str) -> bool:
|
||||
return True
|
||||
|
||||
|
||||
def import_inp(project: str, cs: ChangeSet) -> bool:
|
||||
def import_inp(project: str, cs: ChangeSet, version: str = '3') -> bool:
|
||||
if 'inp' not in cs.operations[0]:
|
||||
return False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user