def check_cc_compiled_in_subprocess(self, lib, code):
    prolog = ('if 1:\n            import sys\n            sys.path.insert(0, %(path)r)\n            import %(name)s as lib\n            ' % {'name': lib.__name__, 'path': os.path.dirname(lib.__file__)})
    code = (prolog.strip(' ') + code)
    subprocess.check_call([sys.executable, '-c', code])
def check_cc_compiled_in_subprocess(self, lib, code):
    prolog = ('if 1:\n            import sys\n            sys.path.insert(0, %(path)r)\n            import %(name)s as lib\n            ' % {'name': lib.__name__, 'path': os.path.dirname(lib.__file__)})
    code = (prolog.strip(' ') + code)
    subprocess.check_call([sys.executable, '-c', code])