MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / execusercustomize

Function execusercustomize

tools/python-3.11.9-amd64/Lib/site.py:574–591  ·  view source on GitHub ↗

Run custom user specific code, if available.

()

Source from the content-addressed store, hash-verified

572
573
574def execusercustomize():
575 """Run custom user specific code, if available."""
576 try:
577 try:
578 import usercustomize
579 except ImportError as exc:
580 if exc.name == 'usercustomize':
581 pass
582 else:
583 raise
584 except Exception as err:
585 if sys.flags.verbose:
586 sys.excepthook(*sys.exc_info())
587 else:
588 sys.stderr.write(
589 "Error in usercustomize; set PYTHONVERBOSE for traceback:\n"
590 "%s: %s\n" %
591 (err.__class__.__name__, err))
592
593
594def main():

Callers 1

mainFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected