summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 923772a..32995af 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -11,8 +11,11 @@ extensions = [
project = 'pytest-runner'
copyright = '2015 Jason R. Coombs'
+import os
+root = os.path.relpath(os.path.join(os.path.dirname(__file__), '..'))
+
# The short X.Y version.
-version = setuptools_scm.get_version(root='..')
+version = setuptools_scm.get_version(root=root)
# The full version, including alpha/beta/rc tags.
release = version