summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/site.py b/Lib/site.py
index 01086b7..da7bfaa 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -385,6 +385,13 @@ def execsitecustomize():
import sitecustomize
except ImportError:
pass
+ except Exception, err:
+ if os.environ.get("PYTHONVERBOSE"):
+ raise
+ sys.stderr.write(
+ "Error in sitecustomize; set PYTHONVERBOSE for traceback:\n"
+ "%s: %s\n" %
+ (err.__class__.__name__, err))
def main():