Is it possible to run "paster shell blah.ini" (or its variant) and download certain libraries?
I donโt like always typing โfrom foo.bar import mystuffโ as the first command in every pasteur shell and would like the computer to do this for me.
You can try creating a sitecustomize.py script file. If you have this in the same folder as your pasteur shell, the python interpreter should load it at startup.
, sitecustomize.py, , . , , , , -, , .
, , . (a la py2exe), .
. :
http://www.rexx.com/~dkuhlman/pylons_quick_site.html#using-an-ipython-embedded-shell http://pylonshq.com/project/pylonshq/ticket/428
PYTHONSTARTUP , .
, , .
iPython, ( readline). ,% run script , .
Edit:
. , , script ipython, %run myscript.py
%run myscript.py
, ( . ), Pylons iPython, iPython . , , , iPython ( python).