Changeset 10152:c208a62cdd8c in orange


Ignore:
Timestamp:
02/09/12 00:28:35 (2 years ago)
Author:
ales_erjavec
Branch:
default
Message:

Backout of the previous change to prevent importing Orange when only importing orange. The change broke the import process.

Location:
Orange/orng
Files:
4 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/orng/orange.py

    r10145 r10152  
    1  
    2 try: 
    3     import sys as __sys     
    4     import os as __os 
    5     import imp as __imp 
    6     from distutils.sysconfig import get_config_var as __get_config_var 
    7     __ORANGE_SO__FILE__ = __os.path.dirname(__os.path.dirname(__os.path.abspath(__file__))) 
    8     __ORANGE_SO__FILE__ = __os.path.join(__ORANGE_SO__FILE__, "orange" + __get_config_var("SO")) 
    9     if __ORANGE_SO__FILE__ != __sys.modules["orange"].__file__: 
    10         __ORANGE = __imp.load_dynamic("orange", __ORANGE_SO__FILE__) 
    11         __sys.modules['orange'] = __ORANGE 
    12 except Exception, ex: 
    13     from Orange.orange import * 
     1from Orange.orange import * 
Note: See TracChangeset for help on using the changeset viewer.