From 0f9ce1c7022e5fa572886c9a9bda3a7e5c466314 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 21 Aug 2016 13:26:28 +0200 Subject: Implement searching for b in bpkg's exec directory as last resort This way if we run /opt/build2/bin/bpkg it will be able to find b in /opt/build2/bin/ without PATH. --- bpkg/bpkg.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bpkg/bpkg.cxx') diff --git a/bpkg/bpkg.cxx b/bpkg/bpkg.cxx index 561e32e..d6f6924 100644 --- a/bpkg/bpkg.cxx +++ b/bpkg/bpkg.cxx @@ -98,6 +98,8 @@ try { using namespace cli; + exec_dir = path (argv[0]).directory (); + argv_file_scanner scan (argc, argv, "--options-file"); // First parse common options and --version/--help. -- cgit v1.1