Changeset 1566
- Timestamp:
- Nov 10, 2014 12:52:35 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASII.py ¶
r1561 r1566 3620 3620 #print "wxPython description",wx.PlatformInfo 3621 3621 print "This is GSAS-II version: ",__version__,' revision '+str(GSASIIpath.GetVersionNumber()) 3622 GSASIIpath.InvokeDebugOpts() 3622 3623 main() # start the GUI -
TabularUnified trunk/GSASIIpath.py ¶
r1563 r1566 309 309 sys.exit() 310 310 311 def IPyBreak ():311 def IPyBreak_base(): 312 312 '''A routine that invokes an IPython session at the calling location 313 313 This routine is only used when debug=True is set in config.py … … 339 339 ''' 340 340 from IPython.core import ultratb 341 ultratb.FormattedTB(call_pdb=False,color_scheme='LightBG')(*args) 341 if 'win' in sys.platform: 342 ultratb.FormattedTB(call_pdb=False,color_scheme='NoColor')(*args) 343 else: 344 ultratb.FormattedTB(call_pdb=False,color_scheme='LightBG')(*args) 342 345 try: 343 346 from IPython.terminal.embed import InteractiveShellEmbed … … 362 365 pass 363 366 364 if GetConfigValue('debug'): 365 print 'Debug on: IPython: Exceptions and G2path.IPyBreak(); pdb: G2path.pdbBreak()' 366 sys.excepthook = exceptHook 367 import pdb 368 pdbBreak = pdb.set_trace 369 else: 370 IPyBreak = DoNothing 371 pdbBreak = DoNothing 367 IPyBreak = DoNothing 368 pdbBreak = DoNothing 369 def InvokeDebugOpts(): 370 'Called in GSASII.py to set up debug options' 371 if GetConfigValue('debug'): 372 print 'Debug on: IPython: Exceptions and G2path.IPyBreak(); pdb: G2path.pdbBreak()' 373 sys.excepthook = exceptHook 374 import pdb 375 global pdbBreak 376 pdbBreak = pdb.set_trace 377 global IPyBreak 378 IPyBreak = IPyBreak_base 372 379 373 380 if __name__ == '__main__': 381 '''What follows is called to update (or downdate) GSAS-II in a separate process. 382 ''' 374 383 import subprocess 375 384 import time
Note: See TracChangeset
for help on using the changeset viewer.