def METHOD_NAME(self, change):
    if self._location_isset:
        raise RuntimeError("Cannot set profile location more than once.")
    self._location_isset = True
    new = change['new']
    ensure_dir_exists(new)
    # ensure config files exist:
    self.security_dir = os.path.join(new, self.security_dir_name)
    self.log_dir = os.path.join(new, self.log_dir_name)
    self.startup_dir = os.path.join(new, self.startup_dir_name)
    self.pid_dir = os.path.join(new, self.pid_dir_name)
    self.static_dir = os.path.join(new, self.static_dir_name)
    self.check_dirs()