Skip to content

Commit

Permalink
fix: remove temp file on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
makkus committed Apr 17, 2024
1 parent ebf04c3 commit ead3c86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kiara_plugin/onboarding/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def download_file(
tmp_file = tempfile.NamedTemporaryFile(delete=False, suffix=file_name)

def rm_tmp_file():
tmp_file.close()
os.unlink(tmp_file.name)

atexit.register(rm_tmp_file)
Expand Down

0 comments on commit ead3c86

Please sign in to comment.