Skip to content

Commit

Permalink
feat!: look for remote-cartesi-machine in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
vfusco committed Nov 21, 2023
1 parent bc3ed0a commit 81183a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/server-manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3360,8 +3360,7 @@ int main(int argc, char *argv[]) try {
init_logger();
handler_context hctx{};

std::filesystem::path remote_cartesi_machine_path =
boost::dll::program_location().replace_filename("remote-cartesi-machine");
std::filesystem::path remote_cartesi_machine_path = boost::process::search_path("remote-cartesi-machine").string();
if (!std::filesystem::exists(remote_cartesi_machine_path)) {
remote_cartesi_machine_path = "/usr/bin/remote-cartesi-machine";
if (!std::filesystem::exists(remote_cartesi_machine_path)) {
Expand Down

0 comments on commit 81183a4

Please sign in to comment.