From: Gergely Imreh Date: Fri, 19 Mar 2010 14:53:24 +0000 (+0800) Subject: FIX: tweepyshell: ipython shell took original arguments X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2f49648ab6d68882e438cca7e63762a6b71dfb86;p=tweepy.git 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. --- 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