Refine
This commit is contained in:
@@ -387,7 +387,14 @@ def convert_inp_v3_to_v2(inp: str) -> ChangeSet:
|
||||
create_project(project)
|
||||
open_project(project)
|
||||
|
||||
parse_file(project, inp, '3')
|
||||
filename = f'inp/{project}_temp.inp'
|
||||
if os.path.exists(filename):
|
||||
os.remove(filename)
|
||||
|
||||
with open(filename, 'w') as f:
|
||||
f.write(inp)
|
||||
|
||||
parse_file(project, filename, '3')
|
||||
|
||||
'''try:
|
||||
parse_file(project, inp, version)
|
||||
|
||||
Reference in New Issue
Block a user