diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2010-11-23 06:18:00 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2010-11-23 06:18:00 +0100 |
| commit | 502c899772a5c1cfa8e47ba545318c55d2ebf978 (patch) | |
| tree | 7832f2f1707f7a3fccdf0ac5794ce1a8bc850318 /docs | |
| parent | 748f12f378c5d07d0dc1ec9bd261237ce1ba6be7 (diff) | |
| download | sqlparse-502c899772a5c1cfa8e47ba545318c55d2ebf978.tar.gz | |
Fix import paths in Sphinx conf.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/source/conf.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index 63e1b90..30be096 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -11,13 +11,16 @@ # All configuration values have a default; values that are commented out # serve to show the default. +import datetime import sys, os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. #sys.path.append(os.path.abspath('.')) -sys.path.append(os.path.abspath('../../')) +sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../')) + +import sqlparse # -- General configuration ----------------------------------------------------- @@ -40,16 +43,16 @@ master_doc = 'index' # General information about the project. project = u'python-sqlparse' -copyright = u'2009, Andi Albrecht' +copyright = u'%s, Andi Albrecht' % datetime.date.today().strftime('%Y') # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the # built documents. # # The short X.Y version. -version = '0.1.0' +version = sqlparse.__version__ # The full version, including alpha/beta/rc tags. -release = '0.1.0' +release = sqlparse.__version__ # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |
