Private GIT

Skip to content
Snippets Groups Projects
Commit 8e4022c1 authored by Ruud's avatar Ruud
Browse files

Close updater tarfile so Windows can remove it. fix #163

parent 92926fb7
Branches
Tags
No related merge requests found
...@@ -232,6 +232,7 @@ class SourceUpdater(BaseUpdater): ...@@ -232,6 +232,7 @@ class SourceUpdater(BaseUpdater):
# Extract # Extract
tar = tarfile.open(destination) tar = tarfile.open(destination)
tar.extractall(path = extracted_path) tar.extractall(path = extracted_path)
tar.close()
os.remove(destination) os.remove(destination)
self.replaceWith(os.path.join(extracted_path, os.listdir(extracted_path)[0])) self.replaceWith(os.path.join(extracted_path, os.listdir(extracted_path)[0]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment