Skip to content

Commit

Permalink
fix: use runfiles for param file?
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Jul 5, 2024
1 parent 2e4d1d3 commit c78be33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/bzlws_tool_lib/bzlws_tool_lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ bzlws_tool_lib::options bzlws_tool_lib::parse_args
if(!fs::exists(param_file_path)) {
param_file_path = workspace_dir / param_file_path;
}
if(!fs::exists(param_file_path)) {
param_file_path = runfiles->Rlocation(param_file);
}
if(!fs::exists(param_file_path)) {
std::cerr
<< "[ERROR] Unable to read params file: " << param_file << std::endl;
Expand Down

0 comments on commit c78be33

Please sign in to comment.