##// END OF EJS Templates
Fix bug where the history wasn't correctly being set per-profile with...
Fernando Perez -
Show More
@@ -530,12 +530,6 b" object? -> Details about 'object'. ?object also works, ?? prints more."
530 530
531 531 IP.pre_config_initialization()
532 532 # configure readline
533 # Define the history file for saving commands in between sessions
534 if IP_rc.profile:
535 histfname = 'history-%s' % IP_rc.profile
536 else:
537 histfname = 'history'
538 IP.histfile = os.path.join(opts_all.ipythondir,histfname)
539 533
540 534 # update exception handlers with rc file status
541 535 otrap.trap_out() # I don't want these messages ever.
@@ -652,6 +646,8 b" object? -> Details about 'object'. ?object also works, ?? prints more."
652 646 IP.InteractiveTB()
653 647 print "Error importing",profmodname,"- perhaps you should run %upgrade?"
654 648 import_fail_info(profmodname)
649 else:
650 opts.profile = opts_all.profile
655 651 else:
656 652 force_import('ipy_profile_none')
657 653 try:
@@ -666,6 +662,13 b" object? -> Details about 'object'. ?object also works, ?? prints more."
666 662
667 663 import_fail_info("ipy_user_conf")
668 664
665 # Define the history file for saving commands in between sessions
666 if opts.profile:
667 histfname = 'history-%s' % opts.profile
668 else:
669 histfname = 'history'
670 IP.histfile = os.path.join(opts_all.ipythondir,histfname)
671
669 672 # finally, push the argv to options again to ensure highest priority
670 673 IP_rc.update(opts)
671 674
General Comments 0
You need to be logged in to leave comments. Login now