From 08d366b33de9dcdc014b4dc1e5b02b0142befe74 Mon Sep 17 00:00:00 2001 From: Luca Scheller Date: Mon, 30 Oct 2023 15:47:11 +0100 Subject: [PATCH] Add cached resolver to build deployment --- .github/workflows/build_houdini.yml | 6 ++++++ src/CachedResolver/PythonExpose.py | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_houdini.yml b/.github/workflows/build_houdini.yml index 878a953..1d48fe3 100644 --- a/.github/workflows/build_houdini.yml +++ b/.github/workflows/build_houdini.yml @@ -52,6 +52,9 @@ jobs: - name: Build USD Python Resolver run: | .github/scripts/houdini_build.sh pythonResolver + - name: Build USD Cached Resolver + run: | + .github/scripts/houdini_build.sh cachedResolver - name: Build USD Http Resolver run: | .github/scripts/houdini_build.sh httpResolver @@ -100,6 +103,9 @@ jobs: - name: Build USD Python Resolver run: | .\.github\scripts\houdini_build.bat pythonResolver + - name: Build USD Cached Resolver + run: | + .\.github\scripts\houdini_build.bat cachedResolver - name: Build USD Http Resolver run: | .\.github\scripts\houdini_build.bat httpResolver diff --git a/src/CachedResolver/PythonExpose.py b/src/CachedResolver/PythonExpose.py index dfcd109..5061b3a 100644 --- a/src/CachedResolver/PythonExpose.py +++ b/src/CachedResolver/PythonExpose.py @@ -31,10 +31,10 @@ class UnitTestHelper: current_directory_path = "" @classmethod - def reset(cls): + def reset(cls, current_directory_path=""): cls.context_initialize_call_counter = 0 cls.resolve_and_cache_call_counter = 0 - cls.current_directory_path = "" + cls.current_directory_path = current_directory_path class ResolverContext: @staticmethod