aboutsummaryrefslogtreecommitdiffstats
path: root/run/proc_entry.py
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-04-10 14:35:37 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2013-04-10 14:35:37 -0400
commit4162cc0c57de22566efa6e2dab224909279f2a47 (patch)
treea8628096c4161e658c385b07b026371a2ef5e3c4 /run/proc_entry.py
parent37a410ab7d4ba991a075a3b2f4d24a656f4544ca (diff)
run_exps will run any command whose last argument is the duration.
Diffstat (limited to 'run/proc_entry.py')
-rw-r--r--run/proc_entry.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/run/proc_entry.py b/run/proc_entry.py
index 4ac2c51..56f7c24 100644
--- a/run/proc_entry.py
+++ b/run/proc_entry.py
@@ -5,9 +5,10 @@ class ProcEntry(object):
5 self.proc = proc 5 self.proc = proc
6 self.data = data 6 self.data = data
7 7
8 def write_proc(self):
9 if not os.path.exists(self.proc): 8 if not os.path.exists(self.proc):
10 raise Exception("Invalid proc entry %s" % self.proc) 9 raise ValueError("Invalid proc entry %s" % self.proc)
10
11 def write_proc(self):
11 try: 12 try:
12 with open(self.proc, 'w') as entry: 13 with open(self.proc, 'w') as entry:
13 entry.write(self.data) 14 entry.write(self.data)