Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Feb 27, 2024
1 parent 55073ca commit 67e00a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cpp/multisolver_interface/environment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 67e00a3

Please sign in to comment.