# Path: turbo/conf.py
# class ObjectDict(dict):
# class AppConfig(object):
#     def __getattr__(self, name):
#         def __setattr__(self, name, value):
#     def __init__(self):
#     def log_level(self):
# 
# Path: turbo/util.py
# def get_base_dir(currfile, dir_level_num=3):
#     """
#     find certain path according to currfile
#     """
#     root_path = os.path.abspath(currfile)
#     for i in range(0, dir_level_num):
#         root_path = os.path.dirname(root_path)
# 
#     return root_path
# 
# def import_object(name, package_space=None):
#     if name.count('.') == 0:
#         return __import__(name, package_space, None)
# 
#     parts = name.split('.')
#     obj = __import__('.'.join(parts[:-1]),
#                      package_space, None, [str(parts[-1])], 0)
#     try:
#         return getattr(obj, parts[-1])
#     except AttributeError:
#         raise ImportError("No module named %s" % parts[-1])


import os
from turbo.conf import app_config
from turbo.util import get_base_dir, import_object
    from turbo import log
from __future__ import absolute_import, division, print_function, with_statement




def _install_app(package_space):
    for app in getattr(import_object('apps.settings', package_space), 'INSTALLED_APPS'):

# Path: turbo/conf.py
# class ObjectDict(dict):
# class AppConfig(object):
#     def __getattr__(self, name):
#         def __setattr__(self, name, value):
#     def __init__(self):
#     def log_level(self):
# 
# Path: turbo/util.py
# def get_base_dir(currfile, dir_level_num=3):
#     """
#     find certain path according to currfile
#     """
#     root_path = os.path.abspath(currfile)
#     for i in range(0, dir_level_num):
#         root_path = os.path.dirname(root_path)
# 
#     return root_path
# 
# def import_object(name, package_space=None):
#     if name.count('.') == 0:
#         return __import__(name, package_space, None)
# 
#     parts = name.split('.')
#     obj = __import__('.'.join(parts[:-1]),
#                      package_space, None, [str(parts[-1])], 0)
#     try:
#         return getattr(obj, parts[-1])
#     except AttributeError:
#         raise ImportError("No module named %s" % parts[-1])


# Path: turbo/register.py
import os
from turbo.conf import app_config
from turbo.util import get_base_dir, import_object
    from turbo import log

from __future__ import absolute_import, division, print_function, with_statement




def _install_app(package_space):
    for app in getattr(import_object('apps.settings', package_space), 'INSTALLED_APPS'):

        import_object('.'.join(['apps', app]), package_space)