cc-4105: hooked last run feature into mm2
This commit is contained in:
parent
50116fa6bb
commit
84313a6135
4 changed files with 22 additions and 9 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue