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

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/p/i/piehole-HEAD/test-piehole.py   piehole(Download)
 
sys.path.append('.')
from piehole import run_git, etcd_read, etcd_write, GitFailure, BLANK, \
                    invoke_daemon, reporef, DAEMON_PORT
 
        count = 0
        self.daemon = subprocess.Popen(["piehole.py", "daemon", "--logfile=%s" % self.logfile])
        run("curl --connect-timeout 2 -s -d action=ping http://localhost:%d" % DAEMON_PORT)
        if self.daemon.poll() is None:
            return