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

if __name__ == '__main__':
    path = os.path.join(os.path.dirname(os.path.relpath(__file__)), 'wrapper.out')
    if '--version' not in sys.argv and '-dumpversion' not in sys.argv:
        with open(path, 'wb') as f:
            f.write(b"wrapper.py\n")
    subprocess.call(sys.argv[1:])