From 06a42065145b809cbb7bfdacdca5efe2b510da02 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sun, 19 Jan 2020 15:06:51 +0500 Subject: [PATCH] remove cluttered pyc files --- plogical/upgrade.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 5b1a05f3c..4be6b65c5 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -1662,11 +1662,8 @@ CSRF_COOKIE_SECURE = True command = 'chmod 600 /usr/local/CyberCP/plogical/adminPass.py' Upgrade.executioner(command, 0) - # pycsettings = '/usr/local/CyberCP/CyberCP/settings.pyc' - # - # if os.path.exists(pycsettings): - # os.remove(pycsettings) - + command = "find /usr/local/CyberCP/ -name '*.pyc' -delete" + Upgrade.executioner(command, 0) Upgrade.stdOut("Permissions updated.")