mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-06 13:54:57 +01:00
IGN:Set ipython home directory to a subdir of the calibre config dir to ensure it is always writable
This commit is contained in:
parent
71f2ef4946
commit
c621908aa1
1 changed files with 3 additions and 0 deletions
|
|
@ -190,6 +190,9 @@ def main(args=sys.argv):
|
|||
elif opts.develop_from is not None:
|
||||
develop_from(opts.develop_from)
|
||||
else:
|
||||
from calibre.utils.config import config_dir
|
||||
ipydir = os.path.join(config_dir, ('_' if iswindows else '.')+'ipython')
|
||||
os.environ['IPYTHONDIR'] = ipydir
|
||||
from IPython.Shell import IPShellEmbed
|
||||
ipshell = IPShellEmbed()
|
||||
ipshell()
|
||||
|
|
|
|||
Loading…
Reference in a new issue