From 67e00a32c22aa5ca59f954cf6bdffae367e9dfa8 Mon Sep 17 00:00:00 2001 From: Abdoulbari Zakir Date: Tue, 27 Feb 2024 11:18:18 +0100 Subject: [PATCH] update --- src/cpp/multisolver_interface/environment.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cpp/multisolver_interface/environment.cc b/src/cpp/multisolver_interface/environment.cc index ae995fdcf..926d59e84 100644 --- a/src/cpp/multisolver_interface/environment.cc +++ b/src/cpp/multisolver_interface/environment.cc @@ -329,7 +329,9 @@ int loadLicence(const std::string& lib_path, bool verbose) { std::string xpauth_path_env_var = GetXpressVarFromEnvironmentVariables(XPAUTH_PATH, false); if (!xpauth_path_env_var.empty()) { - code = XPRSinit(xpauth_path_env_var.c_str()); + auto xpauth_path_parent_path = + std::filesystem::path(xpauth_path_env_var).parent_path().string(); + code = XPRSinit(xpauth_path_parent_path.c_str()); if (!code) { return code; }