diff --git a/tools/run_tests/performance/bq_upload_result.py b/tools/run_tests/performance/bq_upload_result.py index d22cba81de8..2da3618ce2e 100755 --- a/tools/run_tests/performance/bq_upload_result.py +++ b/tools/run_tests/performance/bq_upload_result.py @@ -25,7 +25,8 @@ import sys import time import uuid -from . import massage_qps_stats +sys.path.append(os.path.dirname(os.path.abspath(__file__))) +import massage_qps_stats gcp_utils_dir = os.path.abspath( os.path.join(os.path.dirname(__file__), '../../gcp/utils')) diff --git a/tools/run_tests/performance/loadtest_config.py b/tools/run_tests/performance/loadtest_config.py index ef534f880de..ca7d453dd00 100755 --- a/tools/run_tests/performance/loadtest_config.py +++ b/tools/run_tests/performance/loadtest_config.py @@ -31,12 +31,12 @@ import os import string import sys from typing import Any, Dict, Iterable, Mapping, Optional, Type -import uuid import yaml -from . import scenario_config -from . import scenario_config_exporter +sys.path.append(os.path.dirname(os.path.abspath(__file__))) +import scenario_config +import scenario_config_exporter CONFIGURATION_FILE_HEADER_COMMENT = """ # Load test configurations generated from a template by loadtest_config.py. diff --git a/tools/run_tests/performance/loadtest_template.py b/tools/run_tests/performance/loadtest_template.py index aefd8d85097..4ec2aa4c035 100755 --- a/tools/run_tests/performance/loadtest_template.py +++ b/tools/run_tests/performance/loadtest_template.py @@ -31,7 +31,8 @@ from typing import Any, Dict, Iterable, List, Mapping, Type import yaml -from . import loadtest_config +sys.path.append(os.path.dirname(os.path.abspath(__file__))) +import loadtest_config TEMPLATE_FILE_HEADER_COMMENT = """ # Template generated from load test configurations by loadtest_template.py. diff --git a/tools/run_tests/performance/massage_qps_stats.py b/tools/run_tests/performance/massage_qps_stats.py index da1a7613923..e93c0bd572c 100644 --- a/tools/run_tests/performance/massage_qps_stats.py +++ b/tools/run_tests/performance/massage_qps_stats.py @@ -14,7 +14,10 @@ # Autogenerated by tools/codegen/core/gen_stats_data.py -from . import massage_qps_stats_helpers +import sys + +sys.path.append(os.path.dirname(os.path.abspath(__file__))) +import massage_qps_stats_helpers def massage_qps_stats(scenario_result):