1import py, os 2 3s = """from __future__ import unicode_literals 4""" 5 6with open(os.path.join(os.path.dirname(__file__), 'test_dlopen.py')) as f: 7 s += f.read() 8 9exec(py.code.compile(s)) 10