def gen_test_env_paths(envs, shell, num_test_folders=5):
 paths = [os.path.join(envs, u'test {}'.format((test_folder + 1))) for test_folder in range(num_test_folders)]
 for path in paths[:2]:
  symlink_conda(path, sys.prefix, shell)
 converter = shells[shell][u'path_to']
 paths = {i: converter(path) for (i, path) in enumerate(paths)}
 paths[u'root'] = u'root'
 paths[u'bad'] = u'foo bar baz qux'
 envname = {k: shells[shell][u'var_set'].format(variable=u'CONDA_ENVNAME', value=path) for (k, path) in paths.items()}
 return (paths, envname)

def gen_test_env_paths ( envs , shell , num_test_folders = 5 ) : paths = [ os . path . join ( envs , u'test {}' . format ( ( test_folder + 1 ) ) ) for test_folder in range ( num_test_folders ) ] for path in paths [ : 2 ] : symlink_conda ( path , sys . prefix , shell ) converter = shells [ shell ] [ u'path_to' ] paths = { i : converter ( path ) for ( i , path ) in enumerate ( paths ) } paths [ u'root' ] = u'root' paths [ u'bad' ] = u'foo bar baz qux' envname = { k : shells [ shell ] [ u'var_set' ] . format ( variable = u'CONDA_ENVNAME' , value = path ) for ( k , path ) in paths . items ( ) } return ( paths , envname )
people need not use all the test folders listed here .