Exemple #1
0
def _load_modules():
    global Modules
    global bModules
    # This hook generates our bModules instance.
    regen_modules.rebuild_bModules()

    # Test for syntax errors...
    try:
        bModules = reload(bModules)
    except SyntaxError as e:
        tb = sys.exc_info()[2]
        exc_type, exc_value, exc_tb = sys.exc_info()
        raise ModulesDidntLoadDueToSyntax(exc_type, exc_value, exc_tb)
    Modules = bModules.modules
Exemple #2
0
from lib import *
import threading
import socket
import sys
import time
import ssl
import re

# Rebuild module tree
import regen_modules

regen_modules.rebuild_bModules()
import bModules
import config
import signal
import auth
import logging


def should_reconnect():
    """This hook lies in here because it'll give the rest of the structure a fairly central place
    to pull strings from to arrange whether or not to do shit"""
    return True


# These calls need to be abstracted further, if I can do that then I can convince this module
# to update itself on the fly

Modules = {}