Changeset 6363

Show
Ignore:
Timestamp:
05/26/06 15:26:53 (3 years ago)
Author:
asterix
Message:

always use excepthook.py under win (isatty() is not supported)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gtkexcepthook.py

    r4700 r6363  
    2828 
    2929import sys 
     30import os 
    3031import traceback 
    3132import threading 
     
    103104        _exception_in_progress.release() 
    104105         
    105 if not sys.stderr.isatty(): # gdb/kdm etc if we use startx this is not True 
     106# gdb/kdm etc if we use startx this is not True 
     107if os.name == 'nt' or not sys.stderr.isatty(): 
    106108        #FIXME: maybe always show dialog? 
    107109        _excepthook_save = sys.excepthook