diff options
-rw-r--r-- | docs/conf.py | 5 |
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
|