Run custom user specific code, if available.
()
| 572 | |
| 573 | |
| 574 | def 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 | |
| 594 | def main(): |