# Path: kano/logging.py
# class lazy_logger:
# class loader:
#     def __getattr__(self, name):
#     def __init__(self, old_mod):
#     def __getattr__(self, name):
# def log_excepthook(exc_class, exc_value, tb):
# 
# Path: kano/profiling.py
# CONF_FILE = '/etc/kano-profiling.conf'


import os
import sys
import yaml
import cProfile
from kano.logging import logger
from kano.profiling import CONF_FILE
# profiling_late.py
#
# Copyright (C) 2015 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
#
#

'''
Module to enable profiling timepoints. This module is loaded
only if the configuration file exists, see profiling.py for more information
'''


conf = None
myProfile = cProfile.Profile()
app_name = sys.argv[0]
point_current = ""


def load_config():
    global conf

    # load the configuration file

# Path: kano/logging.py
# class lazy_logger:
# class loader:
#     def __getattr__(self, name):
#     def __init__(self, old_mod):
#     def __getattr__(self, name):
# def log_excepthook(exc_class, exc_value, tb):
# 
# Path: kano/profiling.py
# CONF_FILE = '/etc/kano-profiling.conf'


# Path: kano/profiling_late.py
import os
import sys
import yaml
import cProfile
from kano.logging import logger
from kano.profiling import CONF_FILE

# profiling_late.py
#
# Copyright (C) 2015 Kano Computing Ltd.
# License: http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License v2
#
#

'''
Module to enable profiling timepoints. This module is loaded
only if the configuration file exists, see profiling.py for more information
'''


conf = None
myProfile = cProfile.Profile()
app_name = sys.argv[0]
point_current = ""


def load_config():
    global conf

    # load the configuration file

    with open(CONF_FILE, 'r') as inp_conf: