add default value for use_sandbox

This commit is contained in:
virusdefender 2016-01-23 14:51:37 +08:00
parent f30b0a4d56
commit 7cd5d5d41a

View File

@ -84,6 +84,9 @@ static PyObject *judger_run(PyObject *self, PyObject *args, PyObject *kwargs) {
}
config.use_sandbox = PyObject_IsTrue(use_sandbox);
}
else {
config.use_sandbox = 1;
}
run(&config, &result);
return Py_BuildValue("{s:i, s:l, s:i, s:i, s:i, s:i}",