Commit e29ae803 authored by Daniel Brown's avatar Daniel Brown
Browse files

adding in version number parsing when usePipe=False

parent 8e2b56af
......@@ -1765,6 +1765,16 @@ class kat(object):
k = r.stdout.rfind('computation time:')
if usePipe == False:
# Set version if not using pipe information
s = r.stdout.find('(build ') + 7
e = r.stdout[s:].find(')')
if s == -1 or e == -1:
r.katVersion = "Couldn't get version number"
else:
r.katVersion = r.stdout[s:(s+e)]
if k > 0:
try:
line = r.stdout[k:]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment