|
@@ -1,5 +1,6 @@
|
|
|
import logging
|
|
|
import os
|
|
|
+from six import with_metaclass
|
|
|
|
|
|
from .YAMLLoader import YAMLLoader
|
|
|
from kalliope.core.Models.Resources import Resources
|
|
@@ -45,11 +46,10 @@ class SettingNotFound(Exception):
|
|
|
pass
|
|
|
|
|
|
|
|
|
-class SettingLoader(object):
|
|
|
+class SettingLoader(with_metaclass(Singleton, object)):
|
|
|
"""
|
|
|
This Class is used to get the Settings YAML and the Settings as an object
|
|
|
"""
|
|
|
- __metaclass__ = Singleton
|
|
|
|
|
|
def __init__(self, file_path=None):
|
|
|
self.file_path = file_path
|