def get_path_list(args, nni_config, trial_content, temp_nni_path):
    '''get path list according to different platform'''
    path_list, host_list = parse_log_path(args, trial_content)
    platform = nni_config.get_config('experimentConfig').get('trainingServicePlatform')
    if platform == 'local':
        print_normal('Log path: %s' % ' '.join(path_list))
        return path_list
    elif platform == 'remote':
        path_list = copy_data_from_remote(args, nni_config, trial_content, path_list, host_list, temp_nni_path)
        print_normal('Log path: %s' % ' '.join(path_list))
        return path_list
    else:
        print_error('Not supported platform!')
        exit(1)
def get_path_list ( args , nni_config , trial_content , temp_nni_path ) : path_list , host_list = parse_log_path ( args , trial_content ) platform = nni_config . get_config ( 'experimentConfig' ) . get ( 'trainingServicePlatform' ) if platform == 'local' : print_normal ( 'Log path: %s' % ' ' . join ( path_list ) ) return path_list elif platform == 'remote' : path_list = copy_data_from_remote ( args , nni_config , trial_content , path_list , host_list , temp_nni_path ) print_normal ( 'Log path: %s' % ' ' . join ( path_list ) ) return path_list else : print_error ( 'Not supported platform!' ) exit ( 1 )
get path list according to different platform