def _full_archive_path(config_obj, cli_config, lineagename):
 if (config_obj and ('archive_dir' in config_obj)):
  return config_obj['archive_dir']
 else:
  return os.path.join(cli_config.default_archive_dir, lineagename)

def _full_archive_path ( config_obj , cli_config , lineagename ) : if ( config_obj and ( 'archive_dir' in config_obj ) ) : return config_obj [ 'archive_dir' ] else : return os . path . join ( cli_config . default_archive_dir , lineagename )
returns the full archive path for a lineagename uses cli_config to determine archive path if not available from config_obj .