file check added
This commit is contained in:
+16
-2
@@ -303,7 +303,15 @@ def menu_prepare_to_enforce():
|
||||
del data
|
||||
del exe1
|
||||
del executionhist_policy1
|
||||
os.remove("chunkinator.json")
|
||||
|
||||
|
||||
if os.path.exists("chunkinator.json"):
|
||||
os.remove("chunkinator.json")
|
||||
print(f"File 'chunkinator.json' has been deleted.")
|
||||
else:
|
||||
print(f"File 'chunkinator.json' does not exist.")
|
||||
|
||||
|
||||
gc.collect()
|
||||
|
||||
if not os.path.exists(f"parquet\\execution_history_{second_policy}.parquet"):
|
||||
@@ -322,7 +330,13 @@ def menu_prepare_to_enforce():
|
||||
del executionhist_policy2
|
||||
del data2
|
||||
del exe2
|
||||
os.remove("chunkinator.json")
|
||||
|
||||
if os.path.exists("chunkinator.json"):
|
||||
os.remove("chunkinator.json")
|
||||
print(f"File 'chunkinator.json' has been deleted.")
|
||||
else:
|
||||
print(f"File 'chunkinator.json' does not exist.")
|
||||
|
||||
gc.collect()
|
||||
|
||||
if not os.path.exists(f"parquet\\combined_hashlist_{first_policy}_{second_policy}.parquet"):
|
||||
|
||||
Reference in New Issue
Block a user