Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(13)  |  Call(9)  |  Derive(0)  |  Import(4)

        def start(ui, dirstate, root, opts):
    timeout = opts.get('idle_timeout')
    if timeout:
        timeout = float(timeout) * 60000
    else:
        timeout = None

    class service(object):
        def init(self):
            try:
                self.master = master(ui, dirstate, root, timeout)
            except AlreadyStartedException, inst:
                raise util.Abort("inotify-server: %s" % inst)

        def run(self):
            try:
                try:
                    self.master.run()
                except TimeoutException:
                    pass
            finally:
                self.master.shutdown()

    if 'inserve' not in sys.argv:
        runargs = util.hgcmd() + ['inserve', '-R', root]
    else:
        runargs = util.hgcmd() + sys.argv[1:]

    pidfile = ui.config('inotify', 'pidfile')
    opts.setdefault('pid_file', '')
    if opts['daemon'] and pidfile is not None and not opts['pid_file']:
        opts['pid_file'] = pidfile

    service = service()
    logfile = ui.config('inotify', 'log')

    appendpid = ui.configbool('inotify', 'appendpid', False)

    ui.debug('starting inotify server: %s\n' % ' '.join(runargs))
    cmdutil.service(opts, initfn=service.init, runfn=service.run,
                    logfile=logfile, runargs=runargs, appendpid=appendpid)
        


src/m/e/mercurial-2.9.1/hgext/inotify/__init__.py   Mercurial(Download)
def serve(ui, repo, **opts):
    '''start an inotify server for this repository'''
    server.start(ui, repo.dirstate, repo.root, opts)
 
def debuginotify(ui, repo, **opts):

src/m/e/mercurial-2.9.1/hgext/inotify/client.py   Mercurial(Download)
                try:
                    try:
                        server.start(self.ui, self.dirstate, self.root,
                                     dict(daemon=True, daemon_pipefds=''))
                    except server.AlreadyStartedException, inst:

src/p/y/pypmserver-0.1.67/pypmserver/main.py   pypmserver(Download)
def cmdStart( m_args ) :
  print( "Starting..." )
  import server
  server.start( m_args )
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/tool/tb_server/__init__.py   plexnet(Download)
def start():
    global start, stop, publish_exc, wait_until_interrupt
    from server import start, stop, publish_exc, wait_until_interrupt
    return start()
 

src/s/y/Sypy-HEAD/tool/tb_server/__init__.py   Sypy(Download)
def start():
    global start, stop, publish_exc, wait_until_interrupt
    from server import start, stop, publish_exc, wait_until_interrupt
    return start()
 

src/m/o/mootiro-maps-HEAD/fabfile/deploy.py   mootiro-maps(Download)
 
from .base import virtualenv
from .server import start as server_start, stop as server_stop
from .db import backup as db_backup
 
                     format(deploy_info['server']))
        exit()
    server_start()
 
 
                     format(deploy_info['server']))
        exit()
    server_start()
 
 

src/a/c/AccordionMega-HEAD/rtmidi/pkaudio/scsynth/__init__.py   AccordionMega(Download)
"""
 
from server import start, connect
from pattern import Note, Pattern
from pattern import read as read_pattern, write as write_pattern

src/t/u/tumblrthemr-HEAD/src/main.py   tumblrthemr(Download)
def start_server():
	#server.init( args )
	server.start()
	pass
 

src/c/h/chancecoin-HEAD/gui.py   chancecoin(Download)
    def run(self):
        server.start()
 
if getattr(sys, 'frozen', False):
    file_frozen = sys.executable