Ignore:
Timestamp:
05/21/12 13:41:08 (2 years ago)
Author:
mitar
Branch:
default
Message:

Use current version in documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/conf.py

    r10037 r10881  
    1212# serve to show the default. 
    1313 
    14 import sys, os, os.path 
     14import sys, os 
    1515 
    1616#rewrite formatargs function with different defaults 
     
    2222numpydoc.docscrape.inspect = myinspect 
    2323 
     24import imp 
     25module_setup = imp.load_source('module_setup', os.path.join(os.path.dirname(__file__), '..', '..', '..', 'setup.py')) 
     26VERSION = module_setup.VERSION 
     27 
    2428#disable deprecation decorators for the documentation 
    2529os.environ["orange_no_deprecated_members"] = "1" 
     
    2832# add these directories to sys.path here. If the directory is relative to the 
    2933# documentation root, use os.path.abspath to make it absolute, like shown here. 
    30 sys.path.append(os.path.abspath('../../../orange')) 
     34sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))) 
     35import Orange 
    3136 
    3237# -- General configuration ----------------------------------------------------- 
     
    6469# 
    6570# The short X.Y version. 
    66 version = '2.5' 
     71version = VERSION 
    6772# The full version, including alpha/beta/rc tags. 
    68 release = '2.5 beta' 
     73release = VERSION 
    6974 
    7075# The language for content autogenerated by Sphinx. Refer to documentation 
Note: See TracChangeset for help on using the changeset viewer.