code: def set_server_dir(self, dir):
          
          self.dir = os.path.abspath(dir)
          config = os.path.join(self.dir, 'etc', 'grid', 'config.xml')
          self.configured = os.path.exists(config)
docs: Set the directory of the server to be controlled