From 27afc41bf4cdee525ba0e04cb1e88387facd9851 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Tue, 1 Dec 2015 01:00:48 -0800 Subject: [PATCH] remove python zip file after extracting --- WakaTime.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WakaTime.py b/WakaTime.py index 57f33bd..4369fc1 100644 --- a/WakaTime.py +++ b/WakaTime.py @@ -418,6 +418,11 @@ class InstallPython(threading.Thread): path = os.path.join(os.path.expanduser('~'), '.wakatime', 'python') zf.extractall(path) + try: + os.remove(zip_file) + except: + pass + def plugin_loaded(): global SETTINGS