6from recipe_engine
import recipe_api
9class EnvApi(recipe_api.RecipeApi):
11 env = self.m.context.env
14 upstream_path = env.get(
'PATH',
'')
16 my_path = env_dict.get(
'PATH',
'')
17 if upstream_path
and my_path
and upstream_path != my_path:
18 env[
'PATH'] = upstream_path.replace(
r'%(PATH)s', my_path)
20 return self.m.context(env=env)
def __call__(self, env_dict)