Skip to content

Commit dde3484

Browse files
committed
remove settingspyc
1 parent f8ba109 commit dde3484

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plogical/upgrade.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,8 +1662,10 @@ def fixPermissions():
16621662
command = 'chmod 600 /usr/local/CyberCP/plogical/adminPass.py'
16631663
Upgrade.executioner(command, 0)
16641664

1665-
command = "find /usr/local/CyberCP/ -name '*.pyc' -delete"
1666-
Upgrade.executioner(command, 0)
1665+
pycsettings = '/usr/local/CyberCP/CyberCP/settings.pyc'
1666+
1667+
if os.path.exists(pycsettings):
1668+
os.remove(pycsettings)
16671669

16681670

16691671
Upgrade.stdOut("Permissions updated.")

0 commit comments

Comments
 (0)