From 7c253995765d3af5e3e292bddc88271096c10b82 Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Tue, 9 Nov 2021 09:58:48 -0700 Subject: tests/benchmarks: Fix operation on windows The test script did not work on windows since it had some trouble importing the api module on the blender side of things. turning the file path to the module into a raw string literal sidesteps the backslash issue in the path. Differential Revision: https://developer.blender.org/D13163 Reviewed by: brecht --- tests/performance/api/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/performance/api/environment.py b/tests/performance/api/environment.py index eec92cc7b6b..235a1805ba9 100644 --- a/tests/performance/api/environment.py +++ b/tests/performance/api/environment.py @@ -235,7 +235,7 @@ class TestEnvironment: output_prefix = 'TEST_OUTPUT: ' expression = (f'import sys, pickle, base64\n' - f'sys.path.append("{package_path}")\n' + f'sys.path.append(r"{package_path}")\n' f'import {modulename}\n' f'args = pickle.loads(base64.b64decode({args}))\n' f'result = {modulename}.{functionname}(args)\n' -- cgit v1.2.3