summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/setpython.py
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2011-07-22 10:01:42 -0400
committerNat Goodspeed <nat@lindenlab.com>2011-07-22 10:01:42 -0400
commitd28e411af622b590eada78608f04a0791399e700 (patch)
tree9c7123c23dcbbd71cf6309e3ce38128958a79af6 /indra/llcommon/tests/setpython.py
parentd26356d7e16191da90cae23d3871d4e7289e175f (diff)
parent25ababd7a6e7a1ab7222b760b7bcc8dde3e6b829 (diff)
Automated merge with http://hg.secondlife.com/viewer-development
Diffstat (limited to 'indra/llcommon/tests/setpython.py')
-rw-r--r--indra/llcommon/tests/setpython.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/llcommon/tests/setpython.py b/indra/llcommon/tests/setpython.py
new file mode 100644
index 0000000000..df7b90428e
--- /dev/null
+++ b/indra/llcommon/tests/setpython.py
@@ -0,0 +1,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:]))