source: orange/Orange/OrangeWidgets/__init__.py @ 11095:9a01e272802c

Revision 11095:9a01e272802c, 489 bytes checked in by Ales Erjavec <ales.erjavec@…>, 19 months ago (diff)

New style widget meta descriptions.

The widget meta description using module global namespace.

Line 
1"""
2
3"""
4import pkg_resources
5
6
7# Entry point for main Orange categories/widgets discovery
8def widget_discovery(discovery):
9    from . import (
10        Associate, Classify, Data, Evaluate, Regression,
11        Unsupervised, Visualize, Prototypes
12    )
13    dist = pkg_resources.get_distribution("Orange")
14    for pkg in [Data, Visualize, Classify, Regression, Evaluate, Unsupervised,
15                Associate, Prototypes]:
16        discovery.process_category_package(pkg, distribution=dist)
Note: See TracBrowser for help on using the repository browser.