We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d98f261 commit e713fe0Copy full SHA for e713fe0
doc/conf.py
@@ -57,10 +57,17 @@
57
# |version| and |release|, also used in various other places throughout the
58
# built documents.
59
#
60
+
61
+# We need this hokey-pokey because versioneer needs the current
62
+# directory to be the root of the project to work.
63
+_curpath = os.getcwd()
64
+os.chdir(os.path.dirname(os.path.dirname(__file__)))
65
# The full version, including alpha/beta/rc tags.
66
release = versioneer.get_version()
67
# The short X.Y version.
68
version = '.'.join(release.split('.')[:2])
69
+os.chdir(_curpath)
70
+del _curpath
71
72
# The language for content autogenerated by Sphinx. Refer to documentation
73
# for a list of supported languages.
0 commit comments