find_all_gambit_bits.py
Go to the documentation of this file.
12 This effectively generates a list of all available Bits in Gambit based on the established nameing scheme inside the Gambit repository. 15 gambit_directory (str): Directory to search in. To work properly this has to be the Gambit source directory. 20 return sorted(set([directory for directory in os.listdir(gambit_directory) if "Bit" in directory])) 38 parser = argparse.ArgumentParser(description="""Generates a list of all available Gambit Bits which can be used by the Gambit cmake and diagnostic systems.""") 39 parser.add_argument("--source-dir", required=True, help="Source directory of the Gambit repository.") 40 parser.add_argument("--output-file", required=True, help="Output path for the generated yaml file containing the list of Bits. Recommended to place the file in config/gambit_bits.yaml.") 41 args = parser.parse_args() def get_bits_from_directory_list(gambit_directory) Definition: find_all_gambit_bits.py:8 def write_list_to_yaml(list_of_bits, output_file, yaml_key="gambit_bits") Definition: find_all_gambit_bits.py:23 |