(output_directory="generated_content")
write a csv linking tactics to techniques.
    
    arguments:
        output_directory: string. The folder the output data will be written to. The folder will be created if it doesn't already exist.
write a csv linking tactics to techniques.
    
    arguments:
        output_directory: string. The folder the output data will be written to. The folder will be created if it doesn't already exist.
write a csv linking tactics to techniques . arguments : output_directory : string . The folder the output data will be written to . The folder will be created if it doesn t already exist .
def write_tacticsToTechniques(output_directory="generated_content"):
    """write a csv linking tactics to techniques.
    
    arguments:
        output_directory: string. The folder the output data will be written to. The folder will be created if it doesn't already exist.
    """
    output_file = os.path.join(output_directory, "tacticsToTechniques.csv")
    # Make sure the directory exists
    if not os.path.exists(output_directory):
        os.makedirs(output_directory)
    with open (output_file, "w") as output_file:
        # Write the header of the CSV
        output_file.write("technique,tactic\n")
        for tech in tech_to_tac:
            for tac in tech_to_tac[tech]:
                output_file.write(tech.lower() + "," + tac.lower() + "\n")
def write_tacticsToTechniques ( output_directory = "generated_content" ) : output_file = os . path . join ( output_directory , "tacticsToTechniques.csv" ) # Make sure the directory exists if not os . path . exists ( output_directory ) : os . makedirs ( output_directory ) with open ( output_file , "w" ) as output_file : # Write the header of the CSV output_file . write ( "technique,tactic\n" ) for tech in tech_to_tac : for tac in tech_to_tac [ tech ] : output_file . write ( tech . lower ( ) + "," + tac . lower ( ) + "\n" )