From 1c526e61ace6a69c7e9e4be0a152459117d55ddf 2005-09-22 09:36:58 From: fperez Date: 2005-09-22 09:36:58 Subject: [PATCH] minor fix to argv support --- diff --git a/IPython/demo.py b/IPython/demo.py index 3810566..ffeef75 100644 --- a/IPython/demo.py +++ b/IPython/demo.py @@ -51,7 +51,7 @@ class Demo: self.mark_silent = mark_silent self.re_silent = re.compile(r'^\s*%s\s*$' % mark_silent,re.MULTILINE) self.auto = auto - self.sys_argv = shlex_split(arg_str) + self.sys_argv = [fname]+shlex_split(arg_str) # get a few things from ipython. While it's a bit ugly design-wise, # it ensures that things like color scheme and the like are always in