diff --git a/modules/mol/alg/src/lddt.cc b/modules/mol/alg/src/lddt.cc index 4b913efdb6a90b111681ba8385640ff26410e261..e76621b05aa39c9afc9ea7f2160a592dddd6b1f2 100644 --- a/modules/mol/alg/src/lddt.cc +++ b/modules/mol/alg/src/lddt.cc @@ -135,8 +135,8 @@ CompoundLibPtr load_compound_lib(const String& custom_path) "look for compounds.chemlib in the current working directory" << std::endl; } else { fs::path path_and_exe(exe_path); - fs::path path_only=path_and_exe.branch_path(); - fs::path share_path = path_only.branch_path(); + fs::path path_only=path_and_exe.parent_path(); + fs::path share_path = path_only.parent_path(); share_path = share_path / "share" / "openstructure" / "compounds.chemlib"; String share_path_string=BFPathToString(share_path); diff --git a/tools/molck/main.cc b/tools/molck/main.cc index efed0e21fc749d05491edb4c74febe05b08f6051..b855dc5ddb8ef67acbccac54bf8549ce87fd3cda 100644 --- a/tools/molck/main.cc +++ b/tools/molck/main.cc @@ -116,8 +116,8 @@ ost::conop::CompoundLibPtr load_compound_lib(const String& custom_path) "look for compounds.chemlib in the current working directory"); } else { fs::path path_and_exe(exe_path); - fs::path path_only=path_and_exe.branch_path(); - fs::path share_path = path_only.branch_path(); + fs::path path_only=path_and_exe.parent_path(); + fs::path share_path = path_only.parent_path(); share_path = share_path / "share" / "openstructure" / "compounds.chemlib"; String share_path_string=BFPathToString(share_path);