coupling python scripts

Daniel Nogradi nogradi at gmail.com
Mon Dec 19 12:26:48 CET 2005


> Hi There!
>
> I created a few python scripts and everything is working fine. But to
> make it easier to run the procedure i want to couple these scripts in
> one big script. Is there a possibility to do this, can I for example
> make a script dat 'calls' the other script in the right order?
>
> Many thanks!
> Sander
>
>

Let's suppose your scripts are /path/script1.py, /path/script2.py and
/path/script3.py, then

import os

os.system("/path/script1.py")
os.system("/path/script2.py")
os.system("/path/script3.py")

will execute them one after the other.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051219/aaac2362/attachment.html>


More information about the Python-list mailing list