summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/setpython.py
blob: df7b90428e929614b0d45986e875801bf5d0e1f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/python
"""\
@file   setpython.py
@author Nat Goodspeed
@date   2011-07-13
@brief  Set PYTHON environment variable for tests that care.

$LicenseInfo:firstyear=2011&license=viewerlgpl$
Copyright (c) 2011, Linden Research, Inc.
$/LicenseInfo$
"""

import os
import sys
import subprocess

if __name__ == "__main__":
    os.environ["PYTHON"] = sys.executable
    sys.exit(subprocess.call(sys.argv[1:]))