# Path: lib/core/log.py
# class MY_LOGGER:
#     @staticmethod
#     def success(msg):
#         return LOGGER.log(CUSTOM_LOGGING.SUCCESS, msg)
# 
#     @staticmethod
#     def info(msg):
#         return LOGGER.log(CUSTOM_LOGGING.SYSINFO, msg)
# 
#     @staticmethod
#     def warning(msg):
#         return LOGGER.log(CUSTOM_LOGGING.WARNING, msg)
# 
#     @staticmethod
#     def error(msg):
#         return LOGGER.log(CUSTOM_LOGGING.ERROR, msg)
# 
# Path: lib/core/datatype.py
# class AttribDict(dict):
#     """
#     继承dict类的新字典类AttribDict(), 可以直接通过点运算符得到字典数据
#     This class defines the project object, inheriting from Python data
#     type dictionary.
# 
#     >>> foo = AttribDict()
#     >>> foo.bar = 1
#     >>> foo.bar
#     1
#     """
# 
#     def __init__(self, indict=None, attribute=None):
#         if indict is None:
#             indict = {}
# 
#         # Set any attributes here - before initialisation
#         # these remain as normal attributes
#         self.attribute = attribute
#         dict.__init__(self, indict)
#         self.__initialised = True
# 
#         # After initialisation, setting attributes
#         # is the same as setting an item
# 
#     def __getattr__(self, item):
#         """
#         Maps values to attributes
#         Only called if there *is NOT* an attribute with this name
#         """
# 
#         try:
#             return self.__getitem__(item)
#         except KeyError:
#             raise ToolkitDataException("unable to access item '%s'" % item)
# 
#     def __setattr__(self, item, value):
#         """
#         Maps attributes to values
#         Only if we are initialised
#         """
# 
#         # This test allows attributes to be set in the __init__ method
#         if "_AttribDict__initialised" not in self.__dict__:
#             return dict.__setattr__(self, item, value)
# 
#         # Any normal attributes are handled normally
#         elif item in self.__dict__:
#             dict.__setattr__(self, item, value)
# 
#         else:
#             self.__setitem__(item, value)
# 
#     def __getstate__(self):
#         return self.__dict__
# 
#     def __setstate__(self, dict):
#         self.__dict__ = dict
# 
#     def __deepcopy__(self, memo):
#         retVal = self.__class__()
#         memo[id(self)] = retVal
# 
#         for attr in dir(self):
#             if not attr.startswith('_'):
#                 value = getattr(self, attr)
#                 if not isinstance(value, (types.BuiltinFunctionType, types.FunctionType, types.MethodType)):
#                     setattr(retVal, attr, copy.deepcopy(value, memo))
# 
#         for key, value in self.items():
#             retVal.__setitem__(key, copy.deepcopy(value, memo))
# 
#         return retVal


from lib.core.log import MY_LOGGER
from lib.core.datatype import AttribDict
#!/usr/bin/env python
#-*- coding:utf-8 -*-


logger = MY_LOGGER

paths = AttribDict() #定义新字典对象paths

cmdLineOptions = AttribDict() #定义新字典对象cmdLineOptions


# Path: lib/core/log.py
# class MY_LOGGER:
#     @staticmethod
#     def success(msg):
#         return LOGGER.log(CUSTOM_LOGGING.SUCCESS, msg)
# 
#     @staticmethod
#     def info(msg):
#         return LOGGER.log(CUSTOM_LOGGING.SYSINFO, msg)
# 
#     @staticmethod
#     def warning(msg):
#         return LOGGER.log(CUSTOM_LOGGING.WARNING, msg)
# 
#     @staticmethod
#     def error(msg):
#         return LOGGER.log(CUSTOM_LOGGING.ERROR, msg)
# 
# Path: lib/core/datatype.py
# class AttribDict(dict):
#     """
#     继承dict类的新字典类AttribDict(), 可以直接通过点运算符得到字典数据
#     This class defines the project object, inheriting from Python data
#     type dictionary.
# 
#     >>> foo = AttribDict()
#     >>> foo.bar = 1
#     >>> foo.bar
#     1
#     """
# 
#     def __init__(self, indict=None, attribute=None):
#         if indict is None:
#             indict = {}
# 
#         # Set any attributes here - before initialisation
#         # these remain as normal attributes
#         self.attribute = attribute
#         dict.__init__(self, indict)
#         self.__initialised = True
# 
#         # After initialisation, setting attributes
#         # is the same as setting an item
# 
#     def __getattr__(self, item):
#         """
#         Maps values to attributes
#         Only called if there *is NOT* an attribute with this name
#         """
# 
#         try:
#             return self.__getitem__(item)
#         except KeyError:
#             raise ToolkitDataException("unable to access item '%s'" % item)
# 
#     def __setattr__(self, item, value):
#         """
#         Maps attributes to values
#         Only if we are initialised
#         """
# 
#         # This test allows attributes to be set in the __init__ method
#         if "_AttribDict__initialised" not in self.__dict__:
#             return dict.__setattr__(self, item, value)
# 
#         # Any normal attributes are handled normally
#         elif item in self.__dict__:
#             dict.__setattr__(self, item, value)
# 
#         else:
#             self.__setitem__(item, value)
# 
#     def __getstate__(self):
#         return self.__dict__
# 
#     def __setstate__(self, dict):
#         self.__dict__ = dict
# 
#     def __deepcopy__(self, memo):
#         retVal = self.__class__()
#         memo[id(self)] = retVal
# 
#         for attr in dir(self):
#             if not attr.startswith('_'):
#                 value = getattr(self, attr)
#                 if not isinstance(value, (types.BuiltinFunctionType, types.FunctionType, types.MethodType)):
#                     setattr(retVal, attr, copy.deepcopy(value, memo))
# 
#         for key, value in self.items():
#             retVal.__setitem__(key, copy.deepcopy(value, memo))
# 
#         return retVal


# Path: lib/core/data.py
from lib.core.log import MY_LOGGER
from lib.core.datatype import AttribDict

#!/usr/bin/env python
#-*- coding:utf-8 -*-


logger = MY_LOGGER

paths = AttribDict() #定义新字典对象paths

cmdLineOptions = AttribDict() #定义新字典对象cmdLineOptions


conf = AttribDict() #定义新字典对象conf