PageRenderTime 26ms CodeModel.GetById 18ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/llcommon/tests/setpython.py

https://bitbucket.org/lindenlab/viewer-beta/
Python | 19 lines | 6 code | 2 blank | 11 comment | 1 complexity | 8cc5987710466a841846d80f73b816a0 MD5 | raw file
 1#!/usr/bin/python
 2"""\
 3@file   setpython.py
 4@author Nat Goodspeed
 5@date   2011-07-13
 6@brief  Set PYTHON environment variable for tests that care.
 7
 8$LicenseInfo:firstyear=2011&license=viewerlgpl$
 9Copyright (c) 2011, Linden Research, Inc.
10$/LicenseInfo$
11"""
12
13import os
14import sys
15import subprocess
16
17if __name__ == "__main__":
18    os.environ["PYTHON"] = sys.executable
19    sys.exit(subprocess.call(sys.argv[1:]))