Skip to content

Commit ac54ba9

Browse files
committed
Updated to version to 1.1.6. Changed how the pytoml information is found.
1 parent a818e9e commit ac54ba9

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ packages = ["src/ADScopeControl"]
1010

1111
[project]
1212
name = "PyADScopeControl"
13-
version = "1.1.5"
13+
version = "1.1.6"
1414
authors = [
1515
{ name="Christoph Schmidt", email="cschmidt.fs@gmail.com" },
1616
]

src/ADScopeControl/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@
1212

1313
from WidgetCollection.Tools.PyProjectExtractor import extract_pyproject_info
1414
# Directly in the repo
15+
1516
pytoml = pathlib.Path(__file__).parent.parent.parent
16-
if not pytoml.exists():
17+
if not (pytoml / "pyproject.toml").exists():
1718
# if installed via pip
18-
pytoml = pathlib.Path(__file__).parent
19+
pytoml = pathlib.Path(__file__)
1920

2021
__version__ = extract_pyproject_info(pytoml,"version")
2122
__author__ = extract_pyproject_info(pytoml,"author")

0 commit comments

Comments
 (0)