Calling a C program from a Python Script

Fredrik Lundh fredrik at pythonware.com
Thu Dec 9 13:51:11 EST 2004


Brad Tilley wrote:

> for root, files, dirs in os.walk(path)
>      for f in files:
>          try:
>              EXECUTE_C_PROGRAM

http://docs.python.org/lib/module-subprocess.html

this module in new in 2.4; for older version, os.system() or the os.popen()
family might be what you're looking for.  see the "Replacing Older Functions
with the subprocess Module" section for more info.

</F> 






More information about the Python-list mailing list