From 4d024667fdc18ffd6af62de074c396f8ff83f94d Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Fri, 26 May 2006 13:26:53 +0000
Subject: [PATCH] always use excepthook.py under win (isatty() is not
 supported)

---
 src/gtkexcepthook.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gtkexcepthook.py b/src/gtkexcepthook.py
index 45dc13ec0d..515af42aea 100644
--- a/src/gtkexcepthook.py
+++ b/src/gtkexcepthook.py
@@ -27,6 +27,7 @@
 ##
 
 import sys
+import os
 import traceback
 import threading
 
@@ -102,7 +103,8 @@ def _info(type, value, tb):
 
 	_exception_in_progress.release()
 	
-if not sys.stderr.isatty(): # gdb/kdm etc if we use startx this is not True
+# gdb/kdm etc if we use startx this is not True
+if os.name == 'nt' or not sys.stderr.isatty():
 	#FIXME: maybe always show dialog?
 	_excepthook_save = sys.excepthook
 	sys.excepthook = _info
-- 
GitLab