summaryrefslogtreecommitdiffstats
path: root/test/fixture/wrapper_with_args.py
blob: f9e4d22108642012a95ae38ee409006b423da8e6 (plain)
1
2
3
4
5
6
7
8
9
import os
import sys
import subprocess

if __name__ == '__main__':
    path = os.path.join(os.path.dirname(os.path.relpath(__file__)), 'wrapper.out')
    with open(path, 'a') as f:
        f.write("wrapper_with_args.py %s\n" % " ".join(sys.argv[1:]))
    subprocess.call(sys.argv[1:])