Skip to content
Snippets Groups Projects
Commit bec23910 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

Merge branch 'cleanup/gitignore' into 'master'

[1p_1p] Ignore temporary grid files

See merge request !1121
parents a3cabb38 121734a0
No related branches found
No related tags found
1 merge request!1121[1p_1p] Ignore temporary grid files
#!/usr/bin/env python
from math import *
import os.path
import subprocess
import sys
......@@ -20,6 +21,10 @@ for i in range(2, len(sys.argv)):
# loop over the different permeability ratios
for permIndex in range(0, len(k)):
# check whether executable exists
if not os.path.isfile(execName):
sys.exit(77)
# remove the old log file
subprocess.call(['rm', execName + '.log'])
print("Removed old log file (" + execName + '.log' + ")!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment