Changeset 8044:2ce2d68be7f2 in orange


Ignore:
Timestamp:
06/30/11 15:52:49 (3 years ago)
Author:
markotoplak
Branch:
default
Convert:
78fb3af1fa31b36e984daeca50264200eb2e1ca4
Message:

Disable deprecation decorators for documentation build.

Location:
orange
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/misc/environ.py

    r8042 r8044  
    1414installation). Further, it will look for and try to load a user specific 
    1515configuration file located in $(HOME)/.orangerc.cfg or  
    16 `application_dir`/.orangerc.cfg where `application_dir` is a variable defined 
     16`application_dir`/orangerc.cfg where `application_dir` is a variable defined 
    1717in the global configuration file. 
    1818 
     
    113113def _get_default_env(): 
    114114    """ Return a dictionary with default Orange environment.""" 
     115 
    115116    version = "orange" 
    116117    version_display = "Orange 2.5" 
     
    182183    except Exception: 
    183184        return parser.get(section, option) 
    184      
     185 
     186#options read from environment variables 
     187_ENVIRON_OPTIONS = [ "orange_no_deprecated_members" ] 
     188 
    185189def _configure_env(defaults=None): 
    186190    """ Apply the configuration files on the default environment 
     
    191195        defaults = dict(os.environ) 
    192196        defaults.update(_get_default_env()) 
    193          
     197 
     198    for opt in _ENVIRON_OPTIONS: 
     199        if opt in os.environ: 
     200            defaults[opt] = os.environ[opt] 
     201     
    194202    parser = ConfigParser.SafeConfigParser(defaults) 
    195203    global_cfg = os.path.join(defaults["install_dir"], "orangerc.cfg") 
  • orange/doc/Orange/rst/conf.py

    r8042 r8044  
    1313 
    1414import sys, os 
     15 
     16#disable deprecation decorators for the documentation 
     17os.environ["orange_no_deprecated_members"] = "1" 
    1518 
    1619# If extensions (or modules to document with autodoc) are in another directory, 
Note: See TracChangeset for help on using the changeset viewer.