-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to version to 1.1.7. Added a Helper, to more efficiently find…
… the pyproject.toml
- Loading branch information
Christoph Schmidt
committed
Aug 8, 2024
1 parent
ac54ba9
commit 8aedcb1
Showing
3 changed files
with
46 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ====================================================================================================================== | ||
# EposCMD64.dll is needed, thus, try to copy it | ||
# ====================================================================================================================== | ||
import os | ||
import pathlib | ||
import shutil | ||
|
||
def get_pyprojecttoml() -> pathlib.Path: | ||
# is found in ../../pyconfig.toml | ||
pytoml_via_git = pathlib.Path(__file__).parent.parent.parent / "pyproject.toml" | ||
# found in ./pyconfig.toml: Copied to the root dir | ||
pytoml_via_pip = pathlib.Path(__file__).parent / "pyproject.toml" | ||
|
||
if pytoml_via_git.exists(): | ||
#print("pytoml_via_git:", pytoml_via_git) | ||
return pytoml_via_git.resolve().absolute() | ||
elif pytoml_via_pip.exists(): | ||
#print("pytoml_via_pip:", pytoml_via_pip) | ||
return pytoml_via_pip.resolve().absolute() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters