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

Function execsitecustomize

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

Run custom site specific code, if available.

()

Source from the content-addressed store, hash-verified

552
553
554def execsitecustomize():
555 """Run custom site specific code, if available."""
556 try:
557 try:
558 import sitecustomize
559 except ImportError as exc:
560 if exc.name == 'sitecustomize':
561 pass
562 else:
563 raise
564 except Exception as err:
565 if sys.flags.verbose:
566 sys.excepthook(*sys.exc_info())
567 else:
568 sys.stderr.write(
569 "Error in sitecustomize; set PYTHONVERBOSE for traceback:\n"
570 "%s: %s\n" %
571 (err.__class__.__name__, err))
572
573
574def execusercustomize():

Callers 1

mainFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected