We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d791d1d + 3abcf83 commit cbe3253Copy full SHA for cbe3253
funannotate/check.py
@@ -274,6 +274,10 @@ def check_version7(name):
274
vers = subprocess.Popen([name, '-V'], stderr=subprocess.PIPE,
275
stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].strip()
276
vers = vers.split(' ')[-1]
277
+ if not vers:
278
+ vers = subprocess.Popen([name, '-version'], stderr=subprocess.PIPE,
279
+ stdout=subprocess.PIPE, universal_newlines=True).communicate()[0].strip()
280
+ vers = vers.split(' ')[2]
281
except OSError as e:
282
if e.errno == errno.ENOENT:
283
return False
0 commit comments