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; }