From: crouzet Date: Mon, 13 May 2019 12:22:24 +0000 (+0200) Subject: spns #16894 : clean tmp dir at the end of sat package X-Git-Tag: 5.5.0~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d16ccdb05b4e0316a234ac7866cee44132b846b;p=tools%2Fsat.git spns #16894 : clean tmp dir at the end of sat package --- diff --git a/commands/package.py b/commands/package.py index bf3fbee..ec2a16c 100644 --- a/commands/package.py +++ b/commands/package.py @@ -1597,8 +1597,9 @@ Please add it in file: if os.path.isdir(tmp_local_working_dir): shutil.rmtree(tmp_local_working_dir) - # have to decide some time - DBG.tofix("make shutil.rmtree('%s') effective" % tmp_working_dir, "", DBG.isDeveloper()) + # remove the tmp directory, unless user has registered as developer + if os.path.isdir(tmp_working_dir) and (not DBG.isDeveloper()): + shutil.rmtree(tmp_working_dir) # Print again the path of the package logger.write("\n", 2)