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

Function execsitecustomize

Lib/site.py:650–667  ·  view source on GitHub ↗

Run custom site specific code, if available.

()

Source from the content-addressed store, hash-verified

648
649
650def execsitecustomize():
651 """Run custom site specific code, if available."""
652 try:
653 try:
654 import sitecustomize # noqa: F401
655 except ImportError as exc:
656 if exc.name == 'sitecustomize':
657 pass
658 else:
659 raise
660 except Exception as err:
661 if sys.flags.verbose:
662 sys.excepthook(*sys.exc_info())
663 else:
664 sys.stderr.write(
665 "Error in sitecustomize; set PYTHONVERBOSE for traceback:\n"
666 "%s: %s\n" %
667 (err.__class__.__name__, err))
668
669
670def execusercustomize():

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…