Skip to content

Commit 502c899

Browse files
committed
Fix import paths in Sphinx conf.
1 parent 748f12f commit 502c899

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

docs/source/conf.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14+
import datetime
1415
import sys, os
1516

1617
# If extensions (or modules to document with autodoc) are in another directory,
1718
# add these directories to sys.path here. If the directory is relative to the
1819
# documentation root, use os.path.abspath to make it absolute, like shown here.
1920
#sys.path.append(os.path.abspath('.'))
20-
sys.path.append(os.path.abspath('../../'))
21+
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../../'))
22+
23+
import sqlparse
2124

2225
# -- General configuration -----------------------------------------------------
2326

@@ -40,16 +43,16 @@
4043

4144
# General information about the project.
4245
project = u'python-sqlparse'
43-
copyright = u'2009, Andi Albrecht'
46+
copyright = u'%s, Andi Albrecht' % datetime.date.today().strftime('%Y')
4447

4548
# The version info for the project you're documenting, acts as replacement for
4649
# |version| and |release|, also used in various other places throughout the
4750
# built documents.
4851
#
4952
# The short X.Y version.
50-
version = '0.1.0'
53+
version = sqlparse.__version__
5154
# The full version, including alpha/beta/rc tags.
52-
release = '0.1.0'
55+
release = sqlparse.__version__
5356

5457
# The language for content autogenerated by Sphinx. Refer to documentation
5558
# for a list of supported languages.

0 commit comments

Comments
 (0)