Added a function to clean out old project files no longer needed

This commit is contained in:
Veronica K. B. Olsen
2020-02-13 21:12:28 +01:00
parent c28a246d23
commit 760aee0c8f
3 changed files with 55 additions and 0 deletions
+6
View File
@@ -22,6 +22,7 @@ from time import time
from nw.project.status import NWStatus
from nw.project.item import NWItem
from nw.tools import projectMaintenance
from nw.common import checkString, checkBool, checkInt
from nw.constants import (
nwFiles, nwConst, nwItemType, nwItemClass, nwItemLayout, nwAlert
@@ -200,6 +201,11 @@ class NWProject():
if not self._checkFolder(self.projMeta):
return
try:
projectMaintenance(self)
except Exception as E:
logger.error(str(E))
try:
nwXML = etree.parse(fileName)
except Exception as e: