From aca98ff0b7b6b2e1a25aef902b5f66307cc841d4 Mon Sep 17 00:00:00 2001 From: aineniamh Date: Thu, 30 Jun 2022 19:26:35 +0100 Subject: [PATCH] fix for all versions --- pangolin/utils/initialising.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pangolin/utils/initialising.py b/pangolin/utils/initialising.py index a646bab..6deae29 100644 --- a/pangolin/utils/initialising.py +++ b/pangolin/utils/initialising.py @@ -199,7 +199,7 @@ def print_alias_file_exit(alias_file): def get_version(programs): for program in programs: - cmd = [program, "--version"] + cmd = [f"{program} --version"] output = subprocess.run(cmd, shell=True, check=True, stdout=subprocess.PIPE, encoding='utf-8') version = output.stdout.strip().split()[-1].strip('()v')