I am currently struggling to call a non python program from a python script.
I have a ~1000 files that when passed through this C++ program will generate ~1000 outpu
You can use subprocess for that purpose:
import os import subprocess cwd = os.getcwd() for i in os.listdir(cwd): if i.endswith('.ttp'): o = i + "-out" p = subprocess.call(["program_name", "-input", i, "-output", o])