File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -77,16 +77,13 @@ def __getattr__(cls, name):
7777# The version info for the project you're documenting, acts as replacement for
7878# |version| and |release|, also used in various other places throughout the
7979# built documents.
80- # Get the version from the version file
81- version_file = os .path .join (os .path .dirname (__file__ ),
82- '../../../pvlib/version.py' )
83- with open (version_file , 'r' ) as f :
84- exec (f .read ())
80+
81+ import pvlib
8582
8683# The short X.Y version.
87- version = __version__
84+ version = '%s' % ( pvlib . __version__ )
8885# The full version, including alpha/beta/rc tags.
89- release = __version__
86+ release = version
9087
9188# The language for content autogenerated by Sphinx. Refer to documentation
9289# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments