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'))