MCPcopy Index your code
hub / github.com/RustPython/RustPython / execsitecustomize

Function execsitecustomize

Lib/site.py:651–668  ·  view source on GitHub ↗

Run custom site specific code, if available.

()

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected