Skip to content

Commit

Permalink
Updated to version to 1.1.3. Changed how the pytoml information is fo…
Browse files Browse the repository at this point in the history
…und.
  • Loading branch information
agentsmith29 committed Aug 8, 2024
1 parent 51720cd commit 17d3162
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ packages = ["src/SacherECLControl"]

[project]
name = "PySacherECLControl"
version = "1.1.2"
version = "1.1.3"
authors = [
{ name="Christoph Schmidt", email="[email protected]" },
]
Expand Down
8 changes: 3 additions & 5 deletions src/SacherECLControl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@
dll_dir = str(dll_dir.resolve())
dll_dest = f"{os.getcwd()}/EposCMD64.dll"
# Copy the file "EposCMD64.dll" to the current dir
if not pathlib.Path(dll_dest).exists():
if not pathlib.Path(dll_dest).exists():
shutil.copyfile(dll_dir, f"{os.getcwd()}/EposCMD64.dll")

from WidgetCollection.Tools.PyProjectExtractor import extract_pyproject_info

# Directly in the repo
pytoml = pathlib.Path(__file__).parent.parent.parent
if not pytoml.exists():
if not (pytoml / "pyproject.toml").exists():
# if installed via pip
pytoml = pathlib.Path(__file__).parent
pytoml = pathlib.Path(__file__)

__version__ = extract_pyproject_info(pytoml, "version")
__author__ = extract_pyproject_info(pytoml, "author")
Expand All @@ -37,4 +36,3 @@
from .model.LaserControlModel import LaserControlModel as Model
from .view.LaserControlView import LaserControlView as View
from .LaserConfig import LaserConfig as Config

0 comments on commit 17d3162

Please sign in to comment.