diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-30 11:28:51 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-04-02 10:38:21 -0400 |
commit | 4b75d2b98036195b78d339210ab8d7512d9f2164 (patch) | |
tree | f7de0e91372f760ab8972c5e280023d57abb6b91 /run/proc_entry.py | |
parent | cb0dda981282df08c544e235f0fefb077268272c (diff) |
Added option to ignore environment issues and rewrote part of the generation scripts for easier generator creation.
Diffstat (limited to 'run/proc_entry.py')
-rw-r--r-- | run/proc_entry.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/run/proc_entry.py b/run/proc_entry.py index 0b7f9ce..4ac2c51 100644 --- a/run/proc_entry.py +++ b/run/proc_entry.py | |||
@@ -8,5 +8,8 @@ class ProcEntry(object): | |||
8 | def write_proc(self): | 8 | def write_proc(self): |
9 | if not os.path.exists(self.proc): | 9 | if not os.path.exists(self.proc): |
10 | raise Exception("Invalid proc entry %s" % self.proc) | 10 | raise Exception("Invalid proc entry %s" % self.proc) |
11 | with open(self.proc, 'w') as entry: | 11 | try: |
12 | entry.write(self.data) | 12 | with open(self.proc, 'w') as entry: |
13 | entry.write(self.data) | ||
14 | except: | ||
15 | print("Failed to write into %s value:\n%s" % (self.proc, self.data)) | ||