diff --git a/ambuild2/frontend/v2_2/context_manager.py b/ambuild2/frontend/v2_2/context_manager.py index 3ed3b487..5c895e70 100644 --- a/ambuild2/frontend/v2_2/context_manager.py +++ b/ambuild2/frontend/v2_2/context_manager.py @@ -142,6 +142,7 @@ def execContext(self, context): # Copy vars so changes don't get inherited. scriptGlobals = copy.copy(context.vars_) + scriptGlobals['__file__'] = context.script_ self.pushContext(context) try: