Skip to content

Commit

Permalink
just get version not module
Browse files Browse the repository at this point in the history
  • Loading branch information
jbousquin committed Jul 10, 2023
1 parent c4b6aae commit c2fabf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

try:
# importlib.metadata is present in Python 3.8 and later
import importlib.metadata as importlib_metadata
from importlib.metadata import version
except ImportError:
# use the shim package importlib-metadata pre-3.8
import importlib_metadata as importlib_metadata
from importlib_metadata import version

sys.path.insert(0, os.path.abspath(".."))
sys.path.insert(0, os.path.abspath("../.."))
Expand Down

0 comments on commit c2fabf2

Please sign in to comment.