def generate_env(self, env, replace_env):
        return env if replace_env else dict(os.environ, **env)
Return a suitable environment dict based on user input & behavior.
dataset/ETHPy150Open pyinvoke/invoke/invoke/runners.py/Runner.generate_env