Skip to content

Commit

Permalink
added cleanup call to prevent tmp_dir from warning when garbage colle…
Browse files Browse the repository at this point in the history
…cting
  • Loading branch information
mishmish66 committed Apr 27, 2024
1 parent 3de79b5 commit 4425b24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gymnasium_robotics/envs/maze/maze_v4.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,3 +423,7 @@ def update_target_site_pos(self, pos):
"""Override this method to update the site qpos in the MuJoCo simulation
after a new goal is selected. This is mainly for visualization purposes."""
raise NotImplementedError

def __del__(self):
self.tmp_dir.cleanup()
super().__del__()

0 comments on commit 4425b24

Please sign in to comment.