Skip to content

Commit

Permalink
Merge pull request #726 from StochSS/hotfix-cleanup
Browse files Browse the repository at this point in the history
HOTFIX: Cleanup.py
  • Loading branch information
briandrawert authored Feb 18, 2022
2 parents ea85c1c + fdffec4 commit 75a4d07
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions gillespy2/core/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
import tempfile

def cleanup_tempfiles():
'''
Cleanup all tempfiles in gillespy2 build.
'''
tempdir = tempfile.gettempdir()
for file_obj in os.listdir(tempdir):
if file_obj.startswith("gillespy2_build"):
cleanup_build_files(build_dir=os.path.join(tempdir, file_obj))
'''
Cleanup all tempfiles in gillespy2 build.
'''
tempdir = tempfile.gettempdir()
for file_obj in os.listdir(tempdir):
if file_obj.startswith("gillespy2_build"):
shutil.rmtree(os.path.join(tempdir, file_obj))

0 comments on commit 75a4d07

Please sign in to comment.