File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 77import sys
88from pathlib import Path
99
10- from overpy import __about__ as overpy_about
1110
1211# If extensions (or modules to document with autodoc) are in another directory,
1312# add these directories to sys.path here. If the directory is relative to the
5150# |version| and |release|, also used in various other places throughout the
5251# built documents.
5352#
54- # The short X.Y version.
55- version = overpy_about .__version__
56- # The full version, including alpha/beta/rc tags.
57- release = overpy_about .__version__
53+ try :
54+ from overpy import __about__ as overpy_about
55+ # The short X.Y version.
56+ version = overpy_about .__version__
57+ # The full version, including alpha/beta/rc tags.
58+ release = overpy_about .__version__
59+ except ImportError :
60+ version = "unknown"
61+ release = version
5862
5963# The language for content autogenerated by Sphinx. Refer to documentation
6064# for a list of supported languages.
You can’t perform that action at this time.
0 commit comments