Skip to content
Snippets Groups Projects
Commit af74325a authored by spmohanty's avatar spmohanty
Browse files

Refactor visdualization folder creation

parent c9c5e411
No related branches found
No related tags found
No related merge requests found
...@@ -112,11 +112,11 @@ class FlatlandRemoteEvaluationService: ...@@ -112,11 +112,11 @@ class FlatlandRemoteEvaluationService:
self.record_frame_step = 0 self.record_frame_step = 0
if self.visualize: if self.visualize:
try: if os.path.exists(self.vizualization_folder_name):
print("[WARNING] Deleting already existing visualizations folder at : {}".format(
self.vizualization_folder_name
))
shutil.rmtree(self.vizualization_folder_name) shutil.rmtree(self.vizualization_folder_name)
except Exception as e:
print(e)
os.mkdir(self.vizualization_folder_name) os.mkdir(self.vizualization_folder_name)
def get_env_filepaths(self): def get_env_filepaths(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment