Lines Matching refs:envar
533 char *envar = Py_GETENV("PYTHONBREAKPOINT"); in sys_breakpointhook() local
535 if (envar == NULL || strlen(envar) == 0) { in sys_breakpointhook()
536 envar = "pdb.set_trace"; in sys_breakpointhook()
538 else if (!strcmp(envar, "0")) { in sys_breakpointhook()
546 envar = _PyMem_RawStrdup(envar); in sys_breakpointhook()
547 if (envar == NULL) { in sys_breakpointhook()
551 const char *last_dot = strrchr(envar, '.'); in sys_breakpointhook()
558 attrname = envar; in sys_breakpointhook()
560 else if (last_dot != envar) { in sys_breakpointhook()
562 modulepath = PyUnicode_FromStringAndSize(envar, last_dot - envar); in sys_breakpointhook()
569 PyMem_RawFree(envar); in sys_breakpointhook()
580 PyMem_RawFree(envar); in sys_breakpointhook()
591 PyMem_RawFree(envar); in sys_breakpointhook()
594 PyMem_RawFree(envar); in sys_breakpointhook()
604 "Ignoring unimportable $PYTHONBREAKPOINT: \"%s\"", envar); in sys_breakpointhook()
605 PyMem_RawFree(envar); in sys_breakpointhook()