summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/setpython.py
diff options
context:
space:
mode:
authorDebi King (Dessie) <dessie@lindenlab.com>2011-08-11 17:11:57 -0400
committerDebi King (Dessie) <dessie@lindenlab.com>2011-08-11 17:11:57 -0400
commitdc6c486dea4ad16c3ed3130549ef8d04bc0c251b (patch)
tree793505e141c1352a0b1a7dc2e8ff73407658bdaf /indra/llcommon/tests/setpython.py
parent25d23fcbeb784e1f1312195d9ea31ad59ee81dc4 (diff)
parent8c5da0552db39ba6031b76ffb08994e53217a559 (diff)
reconciled .hgtags
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:]))