Home
last modified time | relevance | path

Searched refs:runmodule (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Dmain.c177 PyObject *runpy, *runmodule, *runargs, *result; in RunModule() local
183 runmodule = PyObject_GetAttrString(runpy, "_run_module_as_main"); in RunModule()
184 if (runmodule == NULL) { in RunModule()
194 Py_DECREF(runmodule); in RunModule()
197 result = PyObject_Call(runmodule, runargs, NULL); in RunModule()
202 Py_DECREF(runmodule); in RunModule()
/external/python/cpython3/Modules/
Dmain.c288 PyObject *module, *runpy, *runmodule, *runargs, *result; in pymain_run_module() local
295 runmodule = PyObject_GetAttrString(runpy, "_run_module_as_main"); in pymain_run_module()
296 if (runmodule == NULL) { in pymain_run_module()
307 Py_DECREF(runmodule); in pymain_run_module()
316 Py_DECREF(runmodule); in pymain_run_module()
320 result = PyObject_Call(runmodule, runargs, NULL); in pymain_run_module()
325 Py_DECREF(runmodule); in pymain_run_module()