Changeset 10770:af870e1d8181 in orange


Ignore:
Timestamp:
04/05/12 19:31:20 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Raise an import error at widget import if the c4.5 library is not found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Classify/OWC45Tree.py

    r10552 r10770  
    1414import Orange 
    1515 
     16# Test if the c45.(so|pyd) can be found by orange.C45Learner 
     17import orange 
     18try: 
     19    orange.C45Learner() 
     20except orange.KernelException, ex: 
     21    # I guess not 
     22    raise ImportError(ex.message) 
     23  
    1624class OWC45Tree(OWWidget): 
    1725    settingsList = ["name", 
Note: See TracChangeset for help on using the changeset viewer.