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 d81f453 commit 896b931
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 @@ -3372,8 +3372,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 896b931

Please sign in to comment.