Wrap a function
steve at holdenweb.com
Thu Jan 28 20:54:09 CET 2010
Joan Miller wrote:
> On 28 ene, 19:16, Josh Holland <j... at joshh.co.uk> wrote:
>> On 2010-01-28, Joan Miller <pelok... at gmail.com> wrote:
>>> I've to call to many functions with the format:
>> Check the docs on os.system().
> No. I've a function that uses subprocess to run commands on the same
> shell and so substitute to bash scrips. But a script full of run
> ("shell_command --with --arguments") is too verbose.
So rewrite the script to read the commands from a file and execute them
one by one?
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/
More information about the Python-list