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

Function execusercustomize

Lib/site.py:671–688  ·  view source on GitHub ↗

Run custom user specific code, if available.

()

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected