[IPython-user] Passing arguments to run command
Mon May 11 13:24:56 CDT 2009
This might be might a solution for your case:
In : files = !ls test*
In : for i in files:
....: run myScripy.py $i
However, there could be a simpler solution that I don't know of as well.
Do you have any idea how to run your script without issuing a "run" command
in front of it?
On Mon, May 11, 2009 at 12:46 PM, Jeremy Conlin <firstname.lastname@example.org> wrote:
> I am running a Python script from iPython with a command like
> > run myScript.py c test*.dat
> In the directory from which I run the command I have files named:
> I would like all of these passed to my Python script when I issue the
> command shown above. However this isn't happening. Instead I get the
> string "test*.dat" passed. Can someone show me a workaround?
> IPython-user mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-user