author | Edouard Tisserant |
Wed, 09 Jun 2021 15:28:00 +0200 | |
branch | svghmi |
changeset 3253 | 9233e60a8317 |
parent 3251 | 6d4ff271ebf1 |
child 3254 | b1bc6099d4e5 |
svghmi/ui.py | file | annotate | diff | comparison | revisions |
--- 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)