From de4dc27dcbd87c6540591ad84ef8409bf072550f Mon Sep 17 00:00:00 2001
From: Anne Philipp <anne.philipp@univie.ac.at>
Date: Fri, 30 Nov 2018 15:47:40 +0100
Subject: [PATCH] added removing tar file after ecgate installtion

---
 source/python/install.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/source/python/install.py b/source/python/install.py
index 9b084b5..440f135 100755
--- a/source/python/install.py
+++ b/source/python/install.py
@@ -60,7 +60,8 @@ from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
 import _config
 from classes.ControlFile import ControlFile
 from classes.UioFiles import UioFiles
-from mods.tools import make_dir, put_file_to_ecserver, submit_job_to_ecserver
+from mods.tools import (make_dir, put_file_to_ecserver, submit_job_to_ecserver,
+                        silent_remove)
 
 # ------------------------------------------------------------------------------
 # FUNCTIONS
@@ -178,6 +179,8 @@ def install_via_gateway(c):
                                os.path.join(_config.PATH_REL_JOBSCRIPTS,
                                             _config.FILE_INSTALL_COMPILEJOB))
 
+        silent_remove(tar_file)
+
         print('job compilation script has been submitted to ecgate for ' +
               'installation in ' + c.flexpart_root_scripts +
                '/' + target_dirname)
-- 
GitLab