- args[i+1] = NULL;
-
-#ifdef _WIN32
- std::cerr << "The 'apitrace diff-images' command is not yet supported on this O/S.\n";
-#else
- execv(command.str(), args);
-#endif
-
- std::cerr << "Error: Failed to execute " << args[0] << "\n";
+ std::vector<const char *> args;
+ args.push_back("python");
+ args.push_back(command.str());
+ for (i = 1; i < argc; i++) {
+ args.push_back(argv[i]);
+ }
+ args.push_back(NULL);