diff --git a/nano/secure/utility.cpp b/nano/secure/utility.cpp index 0ed99eb9b1..d7e263d81f 100644 --- a/nano/secure/utility.cpp +++ b/nano/secure/utility.cpp @@ -9,6 +9,13 @@ static std::vector all_unique_paths; std::filesystem::path nano::working_path (nano::networks network) { auto result (nano::app_path ()); + + if (auto path_override = nano::get_env ("NANO_APP_PATH")) + { + result = *path_override; + std::cerr << "Application path overridden by NANO_APP_PATH environment variable: " << result << std::endl; + } + switch (network) { case nano::networks::invalid: