import os, imp, glob

#Loads all of the plugins in the plugins folder
def load_plugins():
    os.chdir('plugins')
    modules = glob.glob('*.py')
    for module in modules:
        if module[:-3] not in [__name__, '__init__', 'core']:
            _m = imp.load_source(module[:-3], module)
            try:
                print "Loaded {0} version {1} by {2}".format(_m.__name__,
                                                             _m.__version__,
                                                             _m.__author__)
            except:
                print "Loaded " + module
    os.chdir('..')