File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1212# All configuration values have a default; values that are commented out
1313# serve to show the default.
1414
15- import sys
1615import os
16+ import sys
1717
1818# If extensions (or modules to document with autodoc) are in another directory,
1919# add these directories to sys.path here. If the directory is relative to the
5757# built documents.
5858#
5959# The short X.Y version.
60- with open (os .path .join ('../../jwcrypto' , 'VERSION' )) as verfile :
61- version = verfile .read ().strip ()
60+ with open (os .path .join ('../../jwcrypto' , 'version.py' )) as verfile :
61+ version_string = verfile .read ().strip ()
62+ version = version_string .strip ("=" )[- 1 ].strip ()
6263# The full version, including alpha/beta/rc tags.
6364release = version
6465
You can’t perform that action at this time.
0 commit comments