Beispiel #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()
Beispiel #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()
Beispiel #3
0
def run_ocl_info2(self):
  import os
  print os.getpid()
  import boxm2_adaptor as b
  b.ocl_info()
Beispiel #4
0
def print_ocl_info(self):
    import boxm2_adaptor as ba
    ba.ocl_info()
Beispiel #5
0
def run_ocl_info(self):
    import boxm2_adaptor as b
    b.ocl_info()
Beispiel #6
0
def print_ocl_info(self):
  import boxm2_adaptor as ba
  ba.ocl_info()
Beispiel #7
0
def run_ocl_info(self):
  import boxm2_adaptor as b
  b.ocl_info()
Beispiel #8
0
def run_ocl_info2(self):
    import os
    print os.getpid()
    import boxm2_adaptor as b
    b.ocl_info()