# Path: neubot/utils_modules.py
# def modprobe(filter, context, message):


import sys
import logging
from neubot import utils_modules
#
# Neubot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Neubot.  If not, see <http://www.gnu.org/licenses/>.
#

''' Common main() code for running subcommands '''


if __name__ == '__main__':
    sys.path.insert(0, '.')


SUBCOMMANDS = {
    'bittorrent': 'neubot.bittorrent',
    'browser': 'neubot.browser',
    'database': 'neubot.database.main',
    'notifier': 'neubot.notifier',
    'privacy': 'neubot.privacy',
    'raw': 'neubot.raw',
    'speedtest': 'neubot.speedtest.client',
}

def main(subcommand, args):
    ''' Run a subcommand's main() '''


# Path: neubot/utils_modules.py
# def modprobe(filter, context, message):


# Path: neubot/main_common.py
import sys
import logging
from neubot import utils_modules

#
# Neubot is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Neubot.  If not, see <http://www.gnu.org/licenses/>.
#

''' Common main() code for running subcommands '''


if __name__ == '__main__':
    sys.path.insert(0, '.')


SUBCOMMANDS = {
    'bittorrent': 'neubot.bittorrent',
    'browser': 'neubot.browser',
    'database': 'neubot.database.main',
    'notifier': 'neubot.notifier',
    'privacy': 'neubot.privacy',
    'raw': 'neubot.raw',
    'speedtest': 'neubot.speedtest.client',
}

def main(subcommand, args):
    ''' Run a subcommand's main() '''


    utils_modules.modprobe(None, "load_subcommand", SUBCOMMANDS)