예제 #1
0
def run(*args):
    mgr = RootManager()
    if len(args) == 1:
        args = args[0].split(" ")
    mgr.handle(args[0], args[1:])
예제 #2
0
파일: manage.py 프로젝트: smurfix/pybble
##BP

## first thing, for monkeypatching

try:
	import dabroker
except ImportError:
	import sys,os
	sys.path.insert(0,os.path.join(os.pardir,"dabroker"))
	import dabroker
dabroker.patch()

import pybble
pybble.FROM_SCRIPT = True
from pybble.core.utils import init_logging

import logging

from flask.ext.script import Server

#from flask.ext.collect import Collect
#from quokka.core.db import db
#from quokka.ext.blueprints import load_blueprint_commands

from pybble.manager.main import RootManager
manager = RootManager()

if __name__ == '__main__':
	init_logging()
	manager.run()
예제 #3
0
 def manager(self, app=None):
     return RootManager(app)
예제 #4
0
파일: manager.py 프로젝트: smurfix/pybble
def run(*args):
	mgr = RootManager()
	if len(args) == 1:
		args = args[0].split(" ")
	mgr.handle(args[0],args[1:])