diff --git a/src/calibre/debug.py b/src/calibre/debug.py index 575308fe14..55e34c7963 100644 --- a/src/calibre/debug.py +++ b/src/calibre/debug.py @@ -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()