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):
77
77
# The version info for the project you're documenting, acts as replacement for
78
78
# |version| and |release|, also used in various other places throughout the
79
79
# 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
85
82
86
83
# The short X.Y version.
87
- version = __version__
84
+ version = '%s' % ( pvlib . __version__ )
88
85
# The full version, including alpha/beta/rc tags.
89
- release = __version__
86
+ release = version
90
87
91
88
# The language for content autogenerated by Sphinx. Refer to documentation
92
89
# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments