modified exit number extraction
This commit is contained in:
parent
93b2160c2f
commit
e7a60988a1
|
@ -5,8 +5,10 @@ class MSC_TOOLS():
|
||||||
for ln in fid_out:
|
for ln in fid_out:
|
||||||
if (string.find(ln,'tress iteration') is not -1):
|
if (string.find(ln,'tress iteration') is not -1):
|
||||||
print ln
|
print ln
|
||||||
|
fid_out.close()
|
||||||
elif (string.find(ln,'Exit number') is not -1):
|
elif (string.find(ln,'Exit number') is not -1):
|
||||||
substr=ln[string.find(ln,'Exit number'):len(ln)]
|
substr=ln[string.find(ln,'Exit number'):len(ln)]
|
||||||
exitnumber=substr[12:16]
|
exitnumber=substr[12:16]
|
||||||
fid_out.close()
|
fid_out.close()
|
||||||
return exitnumber
|
return exitnumber
|
||||||
|
return -1
|
||||||
|
|
Loading…
Reference in New Issue