Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Executes java programs by launching a jvm in a subprocess.

src/c/o/commons-HEAD/src/python/twitter/pants/java/util.py   commons(Download)
from twitter.pants.base.workunit import WorkUnit
 
from .executor import Executor, SubprocessExecutor
from .nailgun_executor import NailgunExecutor
 
  Raises `twitter.pants.java.Executor.Error` if there was a problem launching java itself.
  """
  executor = executor or SubprocessExecutor()
  if not isinstance(executor, Executor):
    raise ValueError('The executor argument must be a java Executor instance, give %s of type %s'

src/t/w/twitter.pants-0.0.23/src/twitter/pants/java/util.py   twitter.pants(Download)
from twitter.pants.base.workunit import WorkUnit
 
from .executor import Executor, SubprocessExecutor
from .nailgun_executor import NailgunExecutor
 
  Raises `twitter.pants.java.Executor.Error` if there was a problem launching java itself.
  """
  executor = executor or SubprocessExecutor()
  if not isinstance(executor, Executor):
    raise ValueError('The executor argument must be a java Executor instance, give %s of type %s'