Skip to content

Commit 3a8bb42

Browse files
authored
v0.5.10
2 parents 863ebf8 + 7203d8a commit 3a8bb42

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

doc/conf.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
# If extensions (or modules to document with autodoc) are in another directory,
22
# add these directories to sys.path here. If the directory is relative to the
33
# documentation root, use os.path.abspath to make it absolute, like shown here.
4-
from sys import path as sys_path
5-
from os.path import abspath
6-
from pathlib import Path
4+
from sys import path as sys_path
5+
from os.path import abspath
6+
from pathlib import Path
7+
from textwrap import dedent
78

89
from pyTooling.Packaging import extractVersionInformation
910

1011
# ==============================================================================
1112
# Project configuration
1213
# ==============================================================================
1314
githubNamespace = "edaa-org"
14-
project = "pySVModel"
15-
directoryName = project.replace('.', '/')
15+
githubProject = pythonProject = "pySVModel"
16+
directoryName = pythonProject.replace('.', '/')
1617

1718

1819
# ==============================================================================
@@ -22,7 +23,7 @@
2223

2324
sys_path.insert(0, abspath("."))
2425
sys_path.insert(0, abspath(".."))
25-
sys_path.insert(0, abspath("../pySVModel"))
26+
sys_path.insert(0, abspath(f"../{directoryName}"))
2627

2728

2829
# ==============================================================================
@@ -34,6 +35,7 @@
3435
packageInformationFile = Path(f"../{directoryName}/__init__.py")
3536
versionInformation = extractVersionInformation(packageInformationFile)
3637

38+
project = pythonProject
3739
author = versionInformation.Author
3840
copyright = versionInformation.Copyright
3941
version = ".".join(versionInformation.Version.split(".")[:2]) # e.g. 2.3 The short X.Y version.

0 commit comments

Comments
 (0)