cc-4105: hooked last run feature into mm2

This commit is contained in:
Rudi Grinberg 2012-07-23 14:27:12 -04:00
parent 50116fa6bb
commit 84313a6135
4 changed files with 22 additions and 9 deletions

View file

@ -3,13 +3,11 @@ import os
from configobj import ConfigObj
import copy
from media.monitor.log import Loggable
from media.monitor.exceptions import NoConfigFile, ConfigAccessViolation
class MMConfig(Loggable):
class MMConfig(object):
def __init__(self, path):
if not os.path.exists(path):
self.logger.error("Configuration file does not exist. Path: '%s'" % path)
raise NoConfigFile(path)
self.cfg = ConfigObj(path)