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