Skip to content

Commit

Permalink
importlib business
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Sep 30, 2024
1 parent 6619468 commit c7672de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@
MOCK_MODULES = ['numpy', 'soundfile']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

import imp
PYRB = imp.load_source('pyrubberband.version', '../pyrubberband/version.py')
import importlib
PYRB = importlib.import_module('pyrubberband.version', '../pyrubberband/version.py')
# The short X.Y version.
version = PYRB.version
# The full version, including alpha/beta/rc tags.
release = PYRB.version


# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
Expand Down

0 comments on commit c7672de

Please sign in to comment.