]> git.cworth.org Git - apitrace/blobdiff - cli/cli_diff.cpp
d3dretrace: Force DWM traces to run on a window.
[apitrace] / cli / cli_diff.cpp
index f03e02d118c207828c45c165842224806021c9e5..76cdce1d6f0dc3874366370419070e766668ace9 100644 (file)
 #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::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());