Commit e8be1be9 authored by payno's avatar payno
Browse files

[registration] try first to load WidgetDiscovery from the old...

[registration] try first to load WidgetDiscovery from the old Orange.canvas.registry.discovery, then on orangewidget.workflow.discovery
parent 1a6078b9
Pipeline #51427 passed with stages
in 2 minutes and 46 seconds
......@@ -9,10 +9,15 @@ import pkg_resources
import logging
from contextlib import contextmanager
from orangecanvas.registry.base import WidgetRegistry
# first check if we are on the old orange3 fork
try:
from Orange.canvas.registry.discovery import WidgetDiscovery
from Orange.canvas.registry.base import WidgetRegistry
except ImportError:
# from orangecanvas.registry.discovery import WidgetDiscovery
from orangewidget.workflow.discovery import WidgetDiscovery
from orangecanvas.registry.base import WidgetRegistry
# from orangecanvas.registry.discovery import WidgetDiscovery
from orangewidget.workflow.discovery import WidgetDiscovery
from ewoksorange import setuptools
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment