[IPython-user] python vs. ipython

Fernando Perez Fernando.Perez at colorado.edu
Wed Feb 1 11:16:53 CST 2006


Ville Vainio wrote:
> On 2/1/06, Peter Teuben <teuben at astro.umd.edu> wrote:
> 
> 
>>2) bug:   If one does
>>
>>        ipython script a b c
>>
>>then it works ok, sys.argv[] is now [script,....]
>>
>>but if one does
>>
>>        ipython script -a b c
> 
> 
> Ok, I this doesn't need correcting.
> 
> The correct format is:
> 
> ipython -p pysh -- myscript.py -foo -bar
> 
> The '--' terminates the options list for ipython, after which arguments start.
> 
> This just needs to be documented.

Great!  DPyGetOpt saved our day :)

Cheers,

f




More information about the IPython-user mailing list