Home
last modified time | relevance | path

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

/external/python/cpython3/Python/
Dsysmodule.c130 PyObject *modulepath = NULL; in sys_breakpointhook() local
134 modulepath = PyUnicode_FromString("builtins"); in sys_breakpointhook()
139 modulepath = PyUnicode_FromStringAndSize(envar, last_dot - envar); in sys_breakpointhook()
145 if (modulepath == NULL) { in sys_breakpointhook()
152 Py_DECREF(modulepath); in sys_breakpointhook()
157 modulepath, NULL, NULL, fromlist, 0); in sys_breakpointhook()
158 Py_DECREF(modulepath); in sys_breakpointhook()
/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 …]