Ejemplo n.º 1
0
def vxl(self):
    import boxm2_adaptor as ba
    from StringIO import StringIO
    from vsi.tools.redirect import Redirect
    import sys
    stdout = StringIO()
    py_stdout = StringIO()
    sys.stdout.flush()

    #Using Redirect is not considered a failed experiment... However this is just
    #a test
    with Redirect(stdout_c=stdout, stdout_py=py_stdout):
        ba.ocl_info()
    py_stdout.seek(0)
    print py_stdout.read()
    stdout.seek(0)
    return stdout.read()
Ejemplo n.º 2
0
def vxl(self):
  import boxm2_adaptor as ba
  from StringIO import StringIO
  from vsi.tools.redirect import Redirect
  import sys
  stdout = StringIO()
  py_stdout=StringIO()
  sys.stdout.flush()

  #Using Redirect is not considered a failed experiment... However this is just
  #a test
  with Redirect(stdout_c=stdout, stdout_py=py_stdout):
    ba.ocl_info()
  py_stdout.seek(0)
  print py_stdout.read()
  stdout.seek(0)
  return stdout.read()
Ejemplo n.º 3
0
def run_ocl_info2(self):
  import os
  print os.getpid()
  import boxm2_adaptor as b
  b.ocl_info()
Ejemplo n.º 4
0
def print_ocl_info(self):
    import boxm2_adaptor as ba
    ba.ocl_info()
Ejemplo n.º 5
0
def run_ocl_info(self):
    import boxm2_adaptor as b
    b.ocl_info()
Ejemplo n.º 6
0
def print_ocl_info(self):
  import boxm2_adaptor as ba
  ba.ocl_info()
Ejemplo n.º 7
0
def run_ocl_info(self):
  import boxm2_adaptor as b
  b.ocl_info()
Ejemplo n.º 8
0
def run_ocl_info2(self):
    import os
    print os.getpid()
    import boxm2_adaptor as b
    b.ocl_info()