#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
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);
}
os::String apitracePath = os::getProcessName();
- std::vector<const char *>args;
+ std::vector<const char *> args;
+ args.push_back("python");
args.push_back(command.str());
args.push_back("--apitrace");
args.push_back(apitracePath.str());