Skip to content

Commit

Permalink
util: Remove __del__ because it doesn't work as destructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Nov 1, 2023
1 parent b0fb57e commit d9b671f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions openage/util/fslike/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,16 +366,3 @@ def get_temp_dir():
path.is_temp = True

return path

def __del__(self):
"""
Destructor used for temp files and directories.
"""
if self.is_temp:
# Cleanup temp file
if self.exists():
if self.is_file():
self.unlink()

elif self.is_dir():
self.removerecursive()

0 comments on commit d9b671f

Please sign in to comment.