Equivalent of strace -feopen < command > on mac os X

Solution 1:

I suppose you meant strace -fetrace=open?

dtruss -f -t open python myfile.py