Fixed problem intriduced by 9b6b336847

- The python3 stuff was applied too widely
This commit is contained in:
Salvador E. Tropea 2022-05-26 10:28:54 -03:00
parent b206d417ca
commit b44fe7e3bb
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def check_version(command, version):
if command in script_versions: if command in script_versions:
return return
cmd = [command, '--version'] 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') cmd.insert(0, 'python3')
logger.debug('Running: '+str(cmd)) logger.debug('Running: '+str(cmd))
result = run(cmd, stdout=PIPE, stderr=PIPE, universal_newlines=True) result = run(cmd, stdout=PIPE, stderr=PIPE, universal_newlines=True)