includehandler: Fold GlobalIncludes into IncludeHandler class

No user for this abstraction in sight.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka
2018-08-24 19:17:54 +02:00
committed by Daniel Wagner
parent 76e7339fdb
commit 5c28272d73
3 changed files with 19 additions and 30 deletions

View File

@@ -57,10 +57,10 @@ class Config:
Implements the kas configuration based on config files.
"""
def __init__(self, filename, target, task=None):
from .includehandler import GlobalIncludes
from .includehandler import IncludeHandler
self._config = {}
self.filename = os.path.abspath(filename)
self.handler = GlobalIncludes(self.filename)
self.handler = IncludeHandler(self.filename)
self.repo_dict = self._get_repo_dict()
self.context = None