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