blob: 0b7f9ce99d5dc82abaecdb55be42dab7ac04bae0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
import os
class ProcEntry(object):
def __init__(self, proc, data):
self.proc = proc
self.data = data
def write_proc(self):
if not os.path.exists(self.proc):
raise Exception("Invalid proc entry %s" % self.proc)
with open(self.proc, 'w') as entry:
entry.write(self.data)
|