From cdd365d83ae5a9900e22864af065236542ea1920 Mon Sep 17 00:00:00 2001 From: Teleport <77507478+teleport2@users.noreply.github.com> Date: Mon, 8 May 2023 22:05:03 +0300 Subject: [PATCH] fix pyspw import in conf.py --- docs/source/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 1e78d67..b1962d5 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -8,7 +8,7 @@ import sys sys.path.insert(0, os.path.abspath('../..')) -import pyspw +exec(sorted([el if el.startswith('__version__') else 'Z' for el in open('../../pyspw/__init__.py', 'r').read().split('\n')], reverse=True)[0]) # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information @@ -16,7 +16,7 @@ import pyspw project = 'Py-SPW' copyright = '2023, Teleport' author = 'Teleport' -release = pyspw.__version__ +release = __version__ # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration