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

    r10405 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__), '../../../'))) 
     24import Orange 
    2025 
    2126# -- General configuration ----------------------------------------------------- 
     
    9095# 
    9196# The short X.Y version. 
    92 version = '2.5' 
     97version = VERSION 
    9398# The full version, including alpha/beta/rc tags. 
    94 release = '2.5 beta' 
     99release = VERSION 
    95100 
    96101# The language for content autogenerated by Sphinx. Refer to documentation 
Note: See TracChangeset for help on using the changeset viewer.