author | paulson |
Thu, 18 Aug 2005 13:09:40 +0200 | |
changeset 17122 | 278eb6251dc0 |
parent 16089 | 9169bdf930f8 |
permissions | -rwxr-xr-x |
16048
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
1 |
#!/usr/bin/python |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
2 |
|
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
3 |
import string |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
4 |
import sys |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
5 |
|
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
6 |
mode = 0 |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
7 |
try: |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
8 |
while 1: |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
9 |
line = sys.stdin.readline() |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
10 |
words = line.split() |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
11 |
if len(words) > 0: |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
12 |
if words[0] == "SPASS": |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
13 |
mode = 1 |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
14 |
if line == '': |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
15 |
break |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
16 |
line = line[:-1] |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
17 |
if mode == 1: |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
18 |
print line |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
19 |
except: |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
20 |
pass |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
21 |
#f.close() |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
22 |
|
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
23 |
sys.exit() |
25cb0fe2e1c6
spassshell and testout.py are used to filter the proof part out of SPASS's
quigley
parents:
diff
changeset
|
24 |