def write_example_config(filename, config):
 with open(os.path.realpath(filename), 'w') as f:
  f.write(yaml.dump(config, default_flow_style=False))

def write_example_config ( filename , config ) : with open ( os . path . realpath ( filename ) , 'w' ) as f : f . write ( yaml . dump ( config , default_flow_style = False ) )
dump generated configuration to a file .