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()
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()
def run_ocl_info2(self): import os print os.getpid() import boxm2_adaptor as b b.ocl_info()
def print_ocl_info(self): import boxm2_adaptor as ba ba.ocl_info()
def run_ocl_info(self): import boxm2_adaptor as b b.ocl_info()