Commits

Aleš Erjavec committed d93b7ac

Fixed an error in widget discovery when the entry point names a module.

Comments (0)

Files changed (1)

Orange/OrangeCanvas/registry/discovery.py

 
             try:
                 if isinstance(point, types.ModuleType):
-                    if point.__path__:
+                    if hasattr(point, "__path__"):
                         # Entry point is a package (a widget category)
                         self.process_category_package(
                             point,