def version():
try:<EOL><INDENT>OPENJP2.opj_version.restype = ctypes.c_char_p<EOL><DEDENT>except:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>v = OPENJP2.opj_version()<EOL>return v.decode('<STR_LIT:utf-8>') if sys.hexversion >= <NUM_LIT> else v<EOL>
Wrapper for opj_version library routine.