From e2c0e98354916f51f454c078ac3aebaf36dffc35 Mon Sep 17 00:00:00 2001 From: lemke_h Date: Tue, 5 Jul 2022 16:00:16 +0200 Subject: [PATCH] pgrouphelpers --- name2pgroups | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/name2pgroups b/name2pgroups index 3b3bfec..9c04f38 100755 --- a/name2pgroups +++ b/name2pgroups @@ -1,6 +1,7 @@ #!/sf/bernina/applications/bm/envs/default/bin/python import sys from pathlib import Path +from tabulate import tabulate name = sys.argv[1] def name2pgrous(name): tp = '/sf/bernina/exp/' @@ -10,8 +11,7 @@ def name2pgrous(name): targets = [i.resolve().name for i in dirs] return [[i_n,i_p] for i_n,i_p in zip(names,targets) if name in i_n] -for i in name2pgrous(name): - print(*i) +print(tabulate(name2pgrous(name),tablefmt='plain'))