Did I find the right examples for you? yes no

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

src/n/i/nipy-0.3.0/tools/run_log_examples.py   nipy(Download)
            retcode = proc.wait()
        finally:
            if proc.poll() is None: # In case we get killed
                proc.terminate()
            stdout_log.close()
            stdout, stderr = proc.communicate()
        finally:
            if proc.poll() is None: # In case we get killed
                proc.terminate()
        return asstr(stdout), asstr(stderr), proc.returncode

src/j/u/jubatus-example-HEAD/test/util.py   jubatus-example(Download)
def run_server(*proc):
    server = Popen(proc, stdout=PIPE, stderr=PIPE)
    try:
        time.sleep(1)
        if server.poll():
            raise Exception('Cannot run server: %s' % (' '.join(proc)))
 
        yield
    finally:
        if server.poll():

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/yolk/utils.py   modern-python-example(Download)
    if max_timeout:
        start = time.time()
        while pipe.poll() is None:
            time.sleep(0.1)
            if time.time() - start > max_timeout:

src/b/a/barrister-js-HEAD/examples/calc/bottle.py   barrister-js(Download)
                environ['BOTTLE_LOCKFILE'] = lockfile
                p = subprocess.Popen(args, env=environ)
                while p.poll() is None: # Busy wait...
                    os.utime(lockfile, None) # I am alive!
                    time.sleep(interval)
                if p.poll() != 3:
                    if os.path.exists(lockfile): os.unlink(lockfile)
                    sys.exit(p.poll())

src/s/o/socialoauth-0.3.3/example/_bottle.py   socialoauth(Download)
                environ['BOTTLE_LOCKFILE'] = lockfile
                p = subprocess.Popen(args, env=environ)
                while p.poll() is None: # Busy wait...
                    os.utime(lockfile, None) # I am alive!
                    time.sleep(interval)
                if p.poll() != 3:
                    if os.path.exists(lockfile): os.unlink(lockfile)
                    sys.exit(p.poll())

src/s/o/social-oauth-HEAD/example/_bottle.py   social-oauth(Download)
                environ['BOTTLE_LOCKFILE'] = lockfile
                p = subprocess.Popen(args, env=environ)
                while p.poll() is None: # Busy wait...
                    os.utime(lockfile, None) # I am alive!
                    time.sleep(interval)
                if p.poll() != 3:
                    if os.path.exists(lockfile): os.unlink(lockfile)
                    sys.exit(p.poll())

src/p/y/pyvk-HEAD/example/bottle.py   pyvk(Download)
            environ['BOTTLE_LOCKFILE'] = lockfile
            p = subprocess.Popen(args, env=environ)
            while p.poll() is None: # Busy wait...
                os.utime(lockfile, None) # I am alive!
                time.sleep(interval)
            if p.poll() != 3:
                if os.path.exists(lockfile): os.unlink(lockfile)
                sys.exit(p.poll())

src/g/r/grunt-applymin-HEAD/sample/bottle.py   grunt-applymin(Download)
                environ['BOTTLE_LOCKFILE'] = lockfile
                p = subprocess.Popen(args, env=environ)
                while p.poll() is None: # Busy wait...
                    os.utime(lockfile, None) # I am alive!
                    time.sleep(interval)
                if p.poll() != 3:
                    if os.path.exists(lockfile): os.unlink(lockfile)
                    sys.exit(p.poll())

src/l/i/libcloud-HEAD/docs/examples/storage/create_directory_backup_stream_to_cf.py   libcloud(Download)
 
pipe = subprocess.Popen(cmd, bufsize=0, shell=True, stdout=subprocess.PIPE)
return_code = pipe.poll()
 
print 'Uploading object...'
    obj = container.upload_object_via_stream(iterator=pipe.stdout,
                                             object_name=object_name)
    return_code = pipe.poll()
 
print 'Upload complete, transferred: %s KB' % ((obj.size / 1024))

src/n/u/nupic-HEAD/examples/opf/bin/profile_opf_memory.py   nupic(Download)
  history = []
  while True:
    if expProc.poll() is not None:
      break
    process = subprocess.Popen(

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next