File size: 419 Bytes
52a9452 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import os
class SignalMonitor(object):
def __init__(self, file_path):
self.file_path = file_path
def get_signal(self):
if self.file_path is None:
return None
if os.path.exists(self.file_path):
with open(self.file_path) as f:
data = self.file.read()
os.remove(f)
return data
else:
return None
|