(outfiles, layers)
Print the layers dict passed in to layer files.
Print the layers dict passed in to layer files.
Print the layers dict passed in to layer files .
def layers_dict_to_files(outfiles, layers):
    """
    Print the layers dict passed in to layer files.
    """

    verboseprint("writing layers dict to layer files... ", end="", flush="true")

    # write each layer to separate files
    if 'enterprise-attack' in layers: json.dump(layers['enterprise-attack'], open(outfiles[0], "w"), indent=4)
    if 'mobile-attack' in layers: json.dump(layers['mobile-attack'], open(outfiles[1], "w"), indent=4)

    verboseprint("done")
def layers_dict_to_files ( outfiles , layers ) : verboseprint ( "writing layers dict to layer files... " , end = "" , flush = "true" ) # write each layer to separate files if 'enterprise-attack' in layers : json . dump ( layers [ 'enterprise-attack' ] , open ( outfiles [ 0 ] , "w" ) , indent = 4 ) if 'mobile-attack' in layers : json . dump ( layers [ 'mobile-attack' ] , open ( outfiles [ 1 ] , "w" ) , indent = 4 ) verboseprint ( "done" )