diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-16 20:46:19 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-16 20:46:19 -0400 |
commit | bdb33621ac67b2cd9fadf3f3b006419ebb16a713 (patch) | |
tree | 8918b5dbc6db8a73c275e445153c7ea42857210b /experiment/proc_entry.py | |
parent | fd92ecb5a642eeae6c54d3cca1508fc4c4cb6a87 (diff) |
Created run_exps.py script.
Currently poorly documented.
Diffstat (limited to 'experiment/proc_entry.py')
-rw-r--r-- | experiment/proc_entry.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/experiment/proc_entry.py b/experiment/proc_entry.py new file mode 100644 index 0000000..0b7f9ce --- /dev/null +++ b/experiment/proc_entry.py | |||
@@ -0,0 +1,12 @@ | |||
1 | import os | ||
2 | |||
3 | class ProcEntry(object): | ||
4 | def __init__(self, proc, data): | ||
5 | self.proc = proc | ||
6 | self.data = data | ||
7 | |||
8 | def write_proc(self): | ||
9 | if not os.path.exists(self.proc): | ||
10 | raise Exception("Invalid proc entry %s" % self.proc) | ||
11 | with open(self.proc, 'w') as entry: | ||
12 | entry.write(self.data) | ||