Allow deleting configuration tree node with no corresponding directory in project tree
--- a/ConfigTreeNode.py Mon May 07 15:10:39 2018 +0200
+++ b/ConfigTreeNode.py Thu May 10 08:33:50 2018 +0200
@@ -499,7 +499,10 @@
# Call the OnCloseMethod
CTNInstance.OnCTNClose()
# Delete confnode dir
- shutil.rmtree(CTNInstance.CTNPath())
+ try:
+ shutil.rmtree(CTNInstance.CTNPath())
+ except:
+ pass
# Remove child of Children
self.Children[CTNInstance.CTNType].remove(CTNInstance)
if len(self.Children[CTNInstance.CTNType]) == 0: