From b44fe7e3bbf2976ccb1e661e6e2e49f28a1765a0 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Thu, 26 May 2022 10:28:54 -0300 Subject: [PATCH] Fixed problem intriduced by 9b6b33684748d92a5592622c4e2b9b5d2c6ffa17 - The python3 stuff was applied too widely --- kibot/kiplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibot/kiplot.py b/kibot/kiplot.py index 2f211e07..8746c065 100644 --- a/kibot/kiplot.py +++ b/kibot/kiplot.py @@ -102,7 +102,7 @@ def check_version(command, version): if command in script_versions: return cmd = [command, '--version'] - if not os.access(command, os.X_OK) and command.endswith('.py'): + if not which(command) and not os.access(command, os.X_OK) and command.endswith('.py'): cmd.insert(0, 'python3') logger.debug('Running: '+str(cmd)) result = run(cmd, stdout=PIPE, stderr=PIPE, universal_newlines=True)