summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-11-12 08:46:36 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-11-12 08:46:36 -0500
commit7555f8aecfd4ea1f391ef03dd1859a217f1ccc22 (patch)
tree0ac36fe0c4db6b1675396bf9ecdb3622fb47e3ad
parent4d88d0d5304aeae69a9418867cbb06c740efe19f (diff)
downloadpytest-runner-7555f8aecfd4ea1f391ef03dd1859a217f1ccc22.tar.gz
Resolve the root relative to docs/conf.py. Fixes #9.2.6.3
-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