Changeset 3971


Ignore:
Timestamp:
May 12, 2019 9:17:59 PM (2 years ago)
Author:
toby
Message:

skip exception processing from inside Spyder & if IPython is not present

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpath.py

    r3962 r3971  
    775775    if GetConfigValue('debug'):
    776776        print ('Debug on: IPython: Exceptions and G2path.IPyBreak(); pdb: G2path.pdbBreak()')
    777         sys.excepthook = exceptHook
    778777        import pdb
    779778        global pdbBreak
     
    783782            global IPyBreak
    784783            IPyBreak = IPyBreak_base
     784            if any('SPYDER' in name for name in os.environ):
     785                print('Running from Spyder, skipping exception trapping')
     786            else:
     787                sys.excepthook = exceptHook
    785788        except:
    786789            pass
Note: See TracChangeset for help on using the changeset viewer.