def find_plugins():
    'Returns a list of plugin path names.'
    for (root, dirs, files) in os.walk(PLUGINS_DIR):
        for file in files:
            if file.endswith('.py'):
                (yield os.path.join(root, file))
Returns a list of plugin path names.
def find_plugins():
    
    for (root, dirs, files) in os.walk(PLUGINS_DIR):
        for file in files:
            if file.endswith('.py'):
                (yield os.path.join(root, file))