From 2f49648ab6d68882e438cca7e63762a6b71dfb86 Mon Sep 17 00:00:00 2001 From: Gergely Imreh Date: Fri, 19 Mar 2010 22:53:24 +0800 Subject: [PATCH] FIX: tweepyshell: ipython shell took original arguments Previously the ipython shell kidnapped all tweepyshell input arguments and interpreted as its own. Thus e.g. supplying a username resulted in it trying to open a file with a name equal to the username. This is not nice so let's put an end to it by explicitly passing an empty arguments list. --- tweepyshell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepyshell b/tweepyshell index 6ba854d..162ecbf 100755 --- a/tweepyshell +++ b/tweepyshell @@ -37,7 +37,7 @@ shellbanner = '' try: import IPython - ipshell = IPython.Shell.IPShell(user_ns = local_ns) + ipshell = IPython.Shell.IPShell([''], user_ns = local_ns) ipshell.mainloop(sys_exit=1, banner = shellbanner) except ImportError: import code -- 2.25.1