Skip to content

Commit

Permalink
Simplify version retrieval in api doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
bccheung committed Jun 11, 2021
1 parent 1d99fe9 commit 0b00201
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions apidoc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
from pathlib import Path
from pkg_resources import parse_version

version_ = {}
with open(Path(__file__).resolve().parent.parent / 'balsa' / 'version.py') as fp:
exec(fp.read(), {}, version_)
version_ = parse_version(version_['__version__'])
import balsa
version_ = parse_version(balsa.__version__)

# -- Project information -----------------------------------------------------

Expand Down

0 comments on commit 0b00201

Please sign in to comment.