def update_environment_variables(self, filename):
        """Updating OS environment variables and current script path and filename."""
        self.env.update(os.environ.copy())
        self.env.update({'PIPELINE_BASH_FILE': filename})