summaryrefslogtreecommitdiff
path: root/indra/llcommon/tests/test_python_script.py
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llcommon/tests/test_python_script.py')
-rw-r--r--indra/llcommon/tests/test_python_script.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/llcommon/tests/test_python_script.py b/indra/llcommon/tests/test_python_script.py
new file mode 100644
index 0000000000..c0c8661aa9
--- /dev/null
+++ b/indra/llcommon/tests/test_python_script.py
@@ -0,0 +1,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())