diff options
Diffstat (limited to 'build2/cli')
-rw-r--r-- | build2/cli/init.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build2/cli/init.cxx b/build2/cli/init.cxx index bad2533..d9fec08 100644 --- a/build2/cli/init.cxx +++ b/build2/cli/init.cxx @@ -118,7 +118,13 @@ namespace build2 try { - pp = process::path_search (cli, true); // Can throw. + // Only search in PATH (specifically, omitting the current + // executable's directory on Windows). + // + pp = process::path_search (cli, + true /* init */, + dir_path () /* fallback */, + true /* path_only */); args[0] = pp.recall_string (); if (verb >= 3) |