##// 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 IP.pre_config_initialization()
531 IP.pre_config_initialization()
532 # configure readline
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 # update exception handlers with rc file status
534 # update exception handlers with rc file status
541 otrap.trap_out() # I don't want these messages ever.
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 IP.InteractiveTB()
646 IP.InteractiveTB()
653 print "Error importing",profmodname,"- perhaps you should run %upgrade?"
647 print "Error importing",profmodname,"- perhaps you should run %upgrade?"
654 import_fail_info(profmodname)
648 import_fail_info(profmodname)
649 else:
650 opts.profile = opts_all.profile
655 else:
651 else:
656 force_import('ipy_profile_none')
652 force_import('ipy_profile_none')
657 try:
653 try:
@@ -666,6 +662,13 b" object? -> Details about 'object'. ?object also works, ?? prints more."
666
662
667 import_fail_info("ipy_user_conf")
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 # finally, push the argv to options again to ensure highest priority
672 # finally, push the argv to options again to ensure highest priority
670 IP_rc.update(opts)
673 IP_rc.update(opts)
671
674
General Comments 0
You need to be logged in to leave comments. Login now