'Set a runtime environment variable `key` to `value`'

def set_runtime_env(self, key, value):

    oldvalue = self.__env.get(key, None)
    if (value != oldvalue):
        self.__env[key] = value
        self.runtime_env_changed.emit(key, value, oldvalue)
