beremiz

Parents 6d4ff271ebf1
Children b1bc6099d4e5
SVGHMI: fix exception when stored widget library path does not exist anymore
  • +1 -1
    svghmi/ui.py
  • --- a/svghmi/ui.py Wed Jun 09 10:06:23 2021 +0200
    +++ b/svghmi/ui.py Wed Jun 09 15:28:00 2021 +0200
    @@ -160,7 +160,7 @@
    self.root = self.AddRoot(root_display_name)
    self.SetPyData(self.root, None)
    - if lib_dir is not None:
    + if lib_dir is not None and os.path.exists(lib_dir):
    self._recurseTree(lib_dir, self.root, [])
    self.Expand(self.root)