Calling a C program from a Python Script

Fredrik Lundh fredrik at
Thu Dec 9 19:51:11 CET 2004

Brad Tilley wrote:

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

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.


More information about the Python-list mailing list