Equivalent of strace -feopen < command > on mac os X I suppose you meant strace -fetrace=open? dtruss -f -t open python myfile.py