Skip to content

Commit

Permalink
Fixed docs/conf.py after autopep broke it
Browse files Browse the repository at this point in the history
  • Loading branch information
comrumino committed Nov 26, 2022
1 parent 60608d4 commit e852b3f
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.

from rpyc.version import __version__, release_date
import importlib.util
from pathlib import Path
import sys
import os
import time
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

name = 'rpyc'
spec = importlib.util.find_spec(name, str(Path(__file__).joinpath('..', '..').resolve()))
module = importlib.util.module_from_spec(spec)
sys.modules[name] = module
spec.loader.exec_module(module)
rpyc = importlib.import_module(name)

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -52,9 +57,9 @@
# built documents.
#
# The short X.Y version.
version = __version__
version = rpyc.version.__version__
# The full version, including alpha/beta/rc tags.
release = __version__ + "/" + release_date
release = rpyc.version.__version__ + "/" + rpyc.version.release_date

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

0 comments on commit e852b3f

Please sign in to comment.