MCPcopy Index your code
hub / github.com/python/cpython / execusercustomize

Function execusercustomize

Lib/site.py:670–687  ·  view source on GitHub ↗

Run custom user specific code, if available.

()

Source from the content-addressed store, hash-verified

668
669
670def execusercustomize():
671 """Run custom user specific code, if available."""
672 try:
673 try:
674 import usercustomize # noqa: F401
675 except ImportError as exc:
676 if exc.name == 'usercustomize':
677 pass
678 else:
679 raise
680 except Exception as err:
681 if sys.flags.verbose:
682 sys.excepthook(*sys.exc_info())
683 else:
684 sys.stderr.write(
685 "Error in usercustomize; set PYTHONVERBOSE for traceback:\n"
686 "%s: %s\n" %
687 (err.__class__.__name__, err))
688
689
690def main():

Callers 1

mainFunction · 0.85

Calls 2

excepthookMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…