I'm calling subprocess.Popen
on an exe
file in this script, and it throws:
OSError: [Errno 8] Exec format error: '/Users/maxghenis/PolicyEngine/openfisca-us/openfisca_us/tools/dev/taxsim/taxsim35.exe'
The answer to subprocess.Popen(): OSError: [Errno 8] Exec format error in python? suggests adding #!/bin/sh
to the top of the shell script. What's an analog to that for calling an exe instead of a shell script?
I'm on a Mac, and the file it's running is https://taxsim.nber.org/stata/taxsim35/taxsim35-unix.exe.