Home
last modified time | relevance | path

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

/external/python/cpython2/Modules/
Dposixmodule.c5424 char modulepath[_MAX_PATH]; in _PyPopenCreateProcess() local
5426 GetModuleFileName(NULL, modulepath, sizeof(modulepath)); in _PyPopenCreateProcess()
5427 for (x = i = 0; modulepath[i]; i++) in _PyPopenCreateProcess()
5428 if (modulepath[i] == SEP) in _PyPopenCreateProcess()
5430 modulepath[x] = '\0'; in _PyPopenCreateProcess()
5432 strncat(modulepath, in _PyPopenCreateProcess()
5434 (sizeof(modulepath)/sizeof(modulepath[0])) in _PyPopenCreateProcess()
5435 -strlen(modulepath)); in _PyPopenCreateProcess()
5436 if (stat(modulepath, &statinfo) != 0) { in _PyPopenCreateProcess()
5437 size_t mplen = sizeof(modulepath)/sizeof(modulepath[0]); in _PyPopenCreateProcess()
[all …]
/external/python/cpython3/Python/
Dsysmodule.c553 PyObject *modulepath = NULL; in sys_breakpointhook() local
557 modulepath = PyUnicode_FromString("builtins"); in sys_breakpointhook()
562 modulepath = PyUnicode_FromStringAndSize(envar, last_dot - envar); in sys_breakpointhook()
568 if (modulepath == NULL) { in sys_breakpointhook()
573 PyObject *module = PyImport_Import(modulepath); in sys_breakpointhook()
574 Py_DECREF(modulepath); in sys_breakpointhook()