Beispiel #1
0
 def execute(self, name, **para):
     settings.configure(name)
     app = Application()
     app.daemon = False
     #app.logger.info("start application %s" % name)
     app.prepare()
     app.run()
     app.logger.info("done")
Beispiel #2
0
 def execute(self, name, **para):
     settings.configure(name)
     app = Application()
     app.daemon = False
     #app.logger.info("start application %s" % name)
     app.prepare()
     app.run()
     app.logger.info("done")
Beispiel #3
0
 def execute(self, name, **para):
     settings.configure(name)
     Application().start()
Beispiel #4
0
    src_path = os.path.join(abs_path, "..", "src")
    src_path = os.path.normpath(src_path)

    prj_lib_path = os.path.join(abs_path, "libs")
    prj_lib_path = os.path.normpath(prj_lib_path)
    
    sys.path.insert(0, src_path)
    sys.path.insert(0, lib_path)
    sys.path.insert(0, prj_lib_path)
    
    print "current dir:%s" % abs_path
    os.chdir(abs_path)
    
def start():
    if len(sys.argv) > 1:
        os.environ['TASK_ID'] = sys.argv[1]

_init_pythonpath()            
from sailing.conf import settings
settings.configure("webrobot")
from sailing.webrobot import WebClient

client = WebClient("local", "clients")
client.start_client()


if __name__ == '__main__':
    _init_pythonpath()
    #start()
    
    
Beispiel #5
0
 def execute(self, name, **para):
     settings.configure(name)
     Application().stop()