MCPcopy Create free account
hub / github.com/catboost/catboost / runSlowPy3cc

Function runSlowPy3cc

tools/py3cc/main.cpp:21–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using TPyObject = THolder<PyObject, TPyObjDeleter>;
20
21int runSlowPy3cc(const char* slowPy3cc, const char* srcpath, const char* inPath, const char* outPath) {
22 TShellCommandOptions opts;
23 opts.SetUseShell(false);
24 opts.SetOutputStream(&Cout);
25 opts.SetErrorStream(&Cerr);
26
27 TShellCommand cmd(slowPy3cc, {srcpath, inPath, outPath}, opts);
28 cmd.Run().Wait();
29
30 if (auto rc = cmd.GetExitCode(); rc.Defined()) {
31 return *rc;
32 }
33 return 1;
34}
35
36int main(int argc, char** argv) {
37 if (argc != 6) {

Callers 1

mainFunction · 0.85

Calls 4

WaitMethod · 0.45
RunMethod · 0.45
GetExitCodeMethod · 0.45
DefinedMethod · 0.45

Tested by

no test coverage detected