X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=cli%2Fcli_diff.cpp;h=76cdce1d6f0dc3874366370419070e766668ace9;hb=8b095e5763690867bdc5e8ae204e0712a669b880;hp=f03e02d118c207828c45c165842224806021c9e5;hpb=a65795f10ab268c2b2c4e079c715eca6f47c2239;p=apitrace diff --git a/cli/cli_diff.cpp b/cli/cli_diff.cpp index f03e02d..76cdce1 100644 --- a/cli/cli_diff.cpp +++ b/cli/cli_diff.cpp @@ -31,14 +31,14 @@ #include "cli.hpp" #include "os_string.hpp" #include "os_process.hpp" -#include "trace_resource.hpp" +#include "cli_resources.hpp" static const char *synopsis = "Identify differences between two traces."; static os::String find_command(void) { - return trace::findScript("tracediff.py"); + return findScript("tracediff.py"); } static void @@ -49,10 +49,11 @@ usage(void) exit(1); } - char *args[3]; - args[0] = (char *) command.str(); - args[1] = (char *) "--help"; - args[2] = NULL; + char *args[4]; + args[0] = (char *) "python"; + args[1] = (char *) command.str(); + args[2] = (char *) "--help"; + args[3] = NULL; os::execute(args); } @@ -69,7 +70,8 @@ command(int argc, char *argv[]) os::String apitracePath = os::getProcessName(); - std::vectorargs; + std::vector args; + args.push_back("python"); args.push_back(command.str()); args.push_back("--apitrace"); args.push_back(apitracePath.str());