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