Add sentences to exempt IFC files from BIMTester auditing

This commit is contained in:
Dion Moult
2019-11-21 09:46:37 +11:00
parent 9a18198988
commit ad504ff081
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ class TestPurger:
with open(filename, 'w') as new_file:
for line in old_file:
is_purged = False
if 'Given the IFC file ' in line:
if 'Given the IFC file ' in line and 'exists' not in line:
filename = line.split('"')[1]
print('Loading file {} ...'.format(filename))
self.file = ifcopenshell.open(filename)