From dfd918f52122657424d0664e38c856e98fa0b53b Mon Sep 17 00:00:00 2001 From: Christoph Lehmann <christoph.lehmann@ufz.de> Date: Mon, 19 Sep 2022 08:10:39 +0200 Subject: [PATCH] [App] Corrected OGS_BIN_DIR --- .../Python/ogs/_internal/provide_ogs_cli_tools_via_wheel.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Applications/Python/ogs/_internal/provide_ogs_cli_tools_via_wheel.py b/Applications/Python/ogs/_internal/provide_ogs_cli_tools_via_wheel.py index 6399fd881b7..ea18d343753 100644 --- a/Applications/Python/ogs/_internal/provide_ogs_cli_tools_via_wheel.py +++ b/Applications/Python/ogs/_internal/provide_ogs_cli_tools_via_wheel.py @@ -67,10 +67,10 @@ binaries_list = [ ] if "PEP517_BUILD_BACKEND" not in os.environ: - if platform.system() == "Windows": - os.add_dll_directory(os.path.join(os.path.dirname(__file__), "bin")) + OGS_BIN_DIR = os.path.join(os.path.join(os.path.dirname(__file__), "..", "bin")) - OGS_BIN_DIR = os.path.join(os.path.join(os.path.dirname(__file__), "bin")) + if platform.system() == "Windows": + os.add_dll_directory(OGS_BIN_DIR) def _program(name, args): return subprocess.run([os.path.join(OGS_BIN_DIR, name)] + args).returncode -- GitLab