# Path: bolt/_btutils.py
# def load_script(filename):
#     """
#     Loads a python script as a module.
# 
#     This function is provided to allow applications to load a Python module by its file name.
# 
#     :param string filename:
#         Name of the python file to be loaded as a module.
# 
#     :return:
#         A |Python|_ module loaded from the specified file.
#     """
#     path, module_name, ext = _extract_script_components(filename)
#     add_search_path(path)
#     return _load_module(module_name)


import os.path
import bolt._btconfig as btconfig
import bolt._btoptions as btoptions
import bolt._btregistry as btregistry
import bolt._btrunner as btrunner
import bolt.tasks.bolt_conttest as bolt_conttest
import bolt.tasks.bolt_coverage as bolt_coverage
import bolt.tasks.bolt_delete_files as bolt_delete_files
import bolt.tasks.bolt_mkdir as bolt_mkdir 
import bolt.tasks.bolt_nose as bolt_nose
import bolt.tasks.bolt_pip as bolt_pip
import bolt.tasks.bolt_set_vars as bolt_set_vars
import bolt.tasks.bolt_setup as bolt_setup
import bolt.tasks.bolt_shell as bolt_shell
import bolt.tasks.bolt_sleep as bolt_sleep
from bolt._btutils import load_script


    def _register_standard_tasks(self):
        self.registry.register_module_tasks(bolt_conttest)
        self.registry.register_module_tasks(bolt_coverage)
        self.registry.register_module_tasks(bolt_delete_files)
        self.registry.register_module_tasks(bolt_mkdir)
        self.registry.register_module_tasks(bolt_nose)
        self.registry.register_module_tasks(bolt_pip)
        self.registry.register_module_tasks(bolt_set_vars)
        self.registry.register_module_tasks(bolt_setup)
        self.registry.register_module_tasks(bolt_shell)
        self.registry.register_module_tasks(bolt_sleep)


    def _register_module(self, module):
        module.register_tasks(self.registry)



class BoltFile(object):
    """
    """
    
    def __init__(self, bolt_file_name):
        self.filename = os.path.abspath(bolt_file_name)
        self._bolt_file_module = self._load()


    def _load(self):

# Path: bolt/_btutils.py
# def load_script(filename):
#     """
#     Loads a python script as a module.
# 
#     This function is provided to allow applications to load a Python module by its file name.
# 
#     :param string filename:
#         Name of the python file to be loaded as a module.
# 
#     :return:
#         A |Python|_ module loaded from the specified file.
#     """
#     path, module_name, ext = _extract_script_components(filename)
#     add_search_path(path)
#     return _load_module(module_name)


# Path: bolt/_btapp.py
import os.path
import bolt._btconfig as btconfig
import bolt._btoptions as btoptions
import bolt._btregistry as btregistry
import bolt._btrunner as btrunner
import bolt.tasks.bolt_conttest as bolt_conttest
import bolt.tasks.bolt_coverage as bolt_coverage
import bolt.tasks.bolt_delete_files as bolt_delete_files
import bolt.tasks.bolt_mkdir as bolt_mkdir 
import bolt.tasks.bolt_nose as bolt_nose
import bolt.tasks.bolt_pip as bolt_pip
import bolt.tasks.bolt_set_vars as bolt_set_vars
import bolt.tasks.bolt_setup as bolt_setup
import bolt.tasks.bolt_shell as bolt_shell
import bolt.tasks.bolt_sleep as bolt_sleep
from bolt._btutils import load_script



    def _register_standard_tasks(self):
        self.registry.register_module_tasks(bolt_conttest)
        self.registry.register_module_tasks(bolt_coverage)
        self.registry.register_module_tasks(bolt_delete_files)
        self.registry.register_module_tasks(bolt_mkdir)
        self.registry.register_module_tasks(bolt_nose)
        self.registry.register_module_tasks(bolt_pip)
        self.registry.register_module_tasks(bolt_set_vars)
        self.registry.register_module_tasks(bolt_setup)
        self.registry.register_module_tasks(bolt_shell)
        self.registry.register_module_tasks(bolt_sleep)


    def _register_module(self, module):
        module.register_tasks(self.registry)



class BoltFile(object):
    """
    """
    
    def __init__(self, bolt_file_name):
        self.filename = os.path.abspath(bolt_file_name)
        self._bolt_file_module = self._load()


    def _load(self):

        return load_script(self.filename)