summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/test_python_script.py
blob: c0c8661aa9147871bd5518bd9daaa7d119febc7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python3
"""\
@file   test_python_script.py
@author Nat Goodspeed
@date   2023-07-07
@brief  Work around a problem running Python within integration tests on GitHub
        Windows runners.

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

import os
import sys

# use pop() so that if the referenced script in turn looks at sys.argv, it
# will see its arguments rather than its own filename
_script = sys.argv.pop(1)
exec(open(_script).read())