[IPython-user] Alias question

Ole Trenner ole@jayotee...
Fri Jul 11 06:22:54 CDT 2008

Dick Moores wrote:
 > I'd like to know how to create an alias to run a script. I've tried
 > alias tri 'run e:\\PythonWork\\Turtle\\randomTriangles.py'

I'm not sure if this is bad or something, but it works:

In [1]: alias test "python e:\\test.py"

In [2]: test
in test.py

(test.py just does "print 'in test.py'")


Ole Trenner

More information about the IPython-user mailing list