The paths of the files I want to process contain parentheses in them.
path = "/dir/file (with parentheses).txt"
I'm trying to process them in Python as follows:
subprocess.call("./process %s" % path, shell=True)
However, I get the following error
/bin/sh: 1: Syntax error: "(" unexpected
How can I pass the correct string to process the proper path?