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/extend-widgets/rst/conf.py

    r10437 r10881  
    1313 
    1414import sys, os 
     15 
     16import imp 
     17module_setup = imp.load_source('module_setup', os.path.join(os.path.dirname(__file__), '..', '..', '..', 'setup.py')) 
     18VERSION = module_setup.VERSION 
    1519 
    1620# If extensions (or modules to document with autodoc) are in another directory, 
    1721# add these directories to sys.path here. If the directory is relative to the 
    1822# documentation root, use os.path.abspath to make it absolute, like shown here. 
    19 sys.path.append(os.path.abspath('../../../')) 
     23sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../../../'))) 
    2024import Orange 
    2125 
     
    4751# 
    4852# The short X.Y version. 
    49 version = '2.5' 
     53version = VERSION 
    5054# The full version, including alpha/beta/rc tags. 
    51 release = '2.5 beta' 
     55release = VERSION 
    5256 
    5357# The language for content autogenerated by Sphinx. Refer to documentation 
Note: See TracChangeset for help on using the changeset viewer.