mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Read ipython user config
This commit is contained in:
parent
39931615d1
commit
a09a45732c
@ -187,6 +187,9 @@ def ipython(user_ns=None):
|
||||
defns.update(user_ns or {})
|
||||
|
||||
c = Config()
|
||||
user_conf = os.path.expanduser('~/.ipython/profile_default/ipython_config.py')
|
||||
if os.path.exists(user_conf):
|
||||
execfile(user_conf, {'get_config': lambda: c})
|
||||
c.TerminalInteractiveShell.prompts_class = CustomPrompt
|
||||
c.InteractiveShellApp.exec_lines = [
|
||||
'from __future__ import division, absolute_import, unicode_literals, print_function',
|
||||
|
Loading…
x
Reference in New Issue
Block a user