Rework exceptions, class methods for open files

This commit is contained in:
2023-04-12 07:15:20 +02:00
parent 5efae02594
commit 72cb52e0bf
8 changed files with 124 additions and 86 deletions

View File

@@ -31,8 +31,7 @@ def extract_single_node_dyn(modify_py: bool = False):
pythonfiles = dyn.extract_python(options)
pythonfiles[0].write()
dyn2py.PythonFile.open_files.clear()
dyn2py.DynamoFile.open_files.clear()
dyn2py.File.open_files.clear()
if modify_py:
# Open the extracted file and replace a string: