From b8a33503e29595a487dbfa5390a3bfc00f756531 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Morin Date: Sat, 4 Nov 2023 13:19:30 -0400 Subject: [PATCH] Don't use RexExecutor.execute_code isolate argument Signed-off-by: Jean-Christophe Morin --- src/rez/resolved_context.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rez/resolved_context.py b/src/rez/resolved_context.py index 79a76299f..12b6daa2e 100644 --- a/src/rez/resolved_context.py +++ b/src/rez/resolved_context.py @@ -2088,7 +2088,8 @@ def normalized(path): commands.set_package(pkg) try: - executor.execute_code(commands, isolate=True) + with executor.reset_globals(): + executor.execute_code(commands) except exc_type as e: exc = e