ENH: Use os.path.join for filter/action config readers

pull/180/head
Steven Hiscocks 2013-04-21 11:21:06 +01:00
parent b47ea7f813
commit c95b87c13c
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ __date__ = "$Date$"
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
__license__ = "GPL"
import logging
import logging, os
from configreader import ConfigReader, OptionConfigReader
# Gets the instance of the logger.
@ -44,7 +44,7 @@ class ActionReader(OptionConfigReader):
]
def read(self):
return ConfigReader.read(self, "action.d/" + self._file)
return ConfigReader.read(self, os.path.join("action.d", self._file))
def convert(self):
head = ["set", self._name]

View File

@ -27,7 +27,7 @@ __date__ = "$Date$"
__copyright__ = "Copyright (c) 2004 Cyril Jaquier"
__license__ = "GPL"
import logging
import logging, os
from configreader import ConfigReader, OptionConfigReader
# Gets the instance of the logger.
@ -41,7 +41,7 @@ class FilterReader(OptionConfigReader):
]
def read(self):
return ConfigReader.read(self, "filter.d/" + self._file)
return ConfigReader.read(self, os.path.join("filter.d", self._file))
def convert(self):
stream = list()