def set_df_folder(self, path): """ Selects the Dwarf Fortress instance to operate on. :param path: The path of the Dwarf Fortress instance to use. """ self.df_dir = os.path.abspath(path) self.init_dir = os.path.join(self.df_dir, 'data', 'init') self.save_dir = os.path.join(self.df_dir, 'data', 'save') self.settings = DFConfiguration(self.df_dir) self.install_extras() self.load_params()