Ignore:
Timestamp:
10/04/12 11:27:50 (19 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

New style widget meta descriptions.

The widget meta description using module global namespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/__init__.py

    r9671 r11095  
    11""" 
    2     This file is here so that the documentation generator can import the 'plot' module.  
     2 
    33""" 
     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 TracChangeset for help on using the changeset viewer.