Changeset 3720 for trunk/GSASIIpath.py
- Timestamp:
- Nov 5, 2018 1:53:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIpath.py
r3518 r3720 695 695 msg = 'Entering IPython console at {0.f_code.co_filename} at line {0.f_lineno}\n'.format(frame) 696 696 savehook = sys.excepthook # save the exception hook 697 try: 698 InteractiveShellEmbed(banner1=msg)(local_ns=frame.f_locals,global_ns=frame.f_globals) 699 except: # use a different call for IPython 5 697 try: # try IPython 5 call 1st 700 698 class c(object): pass 701 699 pseudomod = c() # create something that acts like a module 702 700 pseudomod.__dict__ = frame.f_locals 703 701 InteractiveShellEmbed(banner1=msg)(module=pseudomod,global_ns=frame.f_globals) 702 except: 703 InteractiveShellEmbed(banner1=msg)(local_ns=frame.f_locals,global_ns=frame.f_globals) 704 704 sys.excepthook = savehook # reset IPython's change to the exception hook 705 705
Note: See TracChangeset
for help on using the changeset viewer.