ConfigTreeNode.py
changeset 2182 eeca1aff0691
parent 2004 28af541d776b
child 2414 7fad75e5e63d
equal deleted inserted replaced
2181:52630996e51b 2182:eeca1aff0691
   499         # Call the OnCloseMethod
   499         # Call the OnCloseMethod
   500         CTNInstance.OnCTNClose()
   500         CTNInstance.OnCTNClose()
   501         # Delete confnode dir
   501         # Delete confnode dir
   502         try:
   502         try:
   503             shutil.rmtree(CTNInstance.CTNPath())
   503             shutil.rmtree(CTNInstance.CTNPath())
   504         except:
   504         except Exception:
   505             pass
   505             pass
   506         # Remove child of Children
   506         # Remove child of Children
   507         self.Children[CTNInstance.CTNType].remove(CTNInstance)
   507         self.Children[CTNInstance.CTNType].remove(CTNInstance)
   508         if len(self.Children[CTNInstance.CTNType]) == 0:
   508         if len(self.Children[CTNInstance.CTNType]) == 0:
   509             self.Children.pop(CTNInstance.CTNType)
   509             self.Children.pop(CTNInstance.CTNType)