diff options
author | Ray Molenkamp <github@lazydodo.com> | 2021-11-09 19:58:48 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2021-11-09 19:58:48 +0300 |
commit | 7c253995765d3af5e3e292bddc88271096c10b82 (patch) | |
tree | 2eb4a43be2177995ed3d8d75f3372b0600327dd8 /tests/performance | |
parent | 4f246b8bf9567ab77979f36a5a5f20cc2f1a97ab (diff) |
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
Diffstat (limited to 'tests/performance')
-rw-r--r-- | tests/performance/api/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
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' |