PageRenderTime 205ms CodeModel.GetById 1ms RepoModel.GetById 1ms 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
Possible License(s): LGPL-2.1
  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. $LicenseInfo:firstyear=2011&license=viewerlgpl$
  8. Copyright (c) 2011, Linden Research, Inc.
  9. $/LicenseInfo$
  10. """
  11. import os
  12. import sys
  13. import subprocess
  14. if __name__ == "__main__":
  15. os.environ["PYTHON"] = sys.executable
  16. sys.exit(subprocess.call(sys.argv[1:]))