Lines Matching refs:envar
110 char *envar = Py_GETENV("PYTHONBREAKPOINT"); in sys_breakpointhook() local
112 if (envar == NULL || strlen(envar) == 0) { in sys_breakpointhook()
113 envar = "pdb.set_trace"; in sys_breakpointhook()
115 else if (!strcmp(envar, "0")) { in sys_breakpointhook()
123 envar = _PyMem_RawStrdup(envar); in sys_breakpointhook()
124 if (envar == NULL) { in sys_breakpointhook()
128 const char *last_dot = strrchr(envar, '.'); in sys_breakpointhook()
135 attrname = envar; in sys_breakpointhook()
137 else if (last_dot != envar) { in sys_breakpointhook()
139 modulepath = PyUnicode_FromStringAndSize(envar, last_dot - envar); in sys_breakpointhook()
146 PyMem_RawFree(envar); in sys_breakpointhook()
153 PyMem_RawFree(envar); in sys_breakpointhook()
165 PyMem_RawFree(envar); in sys_breakpointhook()
176 PyMem_RawFree(envar); in sys_breakpointhook()
179 PyMem_RawFree(envar); in sys_breakpointhook()
189 "Ignoring unimportable $PYTHONBREAKPOINT: \"%s\"", envar); in sys_breakpointhook()
190 PyMem_RawFree(envar); in sys_breakpointhook()