From ebe8d7bce8df11203f1e8ff85dddb6e77ef5e3d8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Jan 2010 10:33:33 -0700 Subject: [PATCH] Fix #4581 (WSJ not downloading fully) and fix invocation of embedded python interpreter via call to ipython not working because of command line arguments --- resources/recipes/wsj.recipe | 2 +- src/calibre/__init__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/recipes/wsj.recipe b/resources/recipes/wsj.recipe index b543909dc4..70c05b1ded 100644 --- a/resources/recipes/wsj.recipe +++ b/resources/recipes/wsj.recipe @@ -16,7 +16,7 @@ class WallStreetJournal(BasicNewsRecipe): needs_subscription = True language = 'en' - max_articles_per_feed = 25 + max_articles_per_feed = 1000 timefmt = ' [%a, %b %d, %Y]' no_stylesheets = True diff --git a/src/calibre/__init__.py b/src/calibre/__init__.py index 6faa021151..ec56d340cf 100644 --- a/src/calibre/__init__.py +++ b/src/calibre/__init__.py @@ -451,6 +451,8 @@ if isosx: traceback.print_exc() def ipython(user_ns=None): + old_argv = sys.argv + sys.argv = ['ipython'] if user_ns is None: user_ns = locals() from calibre.utils.config import config_dir @@ -514,5 +516,6 @@ main() from IPython.Shell import IPShellEmbed ipshell = IPShellEmbed(user_ns=user_ns) ipshell() + sys.argv = old_argv