Révision 7
ase/calculators/turbomole.py (revision 7) | ||
---|---|---|
46 | 46 |
proc = Popen([command], shell=True, stderr=PIPE) |
47 | 47 |
error = proc.communicate()[1] |
48 | 48 |
# check the error output |
49 |
if not " ended normally" in error: |
|
50 |
raise OSError(error) |
|
51 |
print "TM command: ", command, "successfully executed" |
|
49 |
with open("control") as file: |
|
50 |
data = file.read() |
|
51 |
if "$actual step" in data: |
|
52 |
raise OSError(error) |
|
53 |
# print "TM command: ", command, "successfully executed" |
|
52 | 54 |
except OSError, e: |
53 | 55 |
print >>sys.stderr, "Execution failed: ", e |
54 | 56 |
sys.exit(1) |
Formats disponibles : Unified diff