()
| 26 | |
| 27 | |
| 28 | def local_libpath(): |
| 29 | # Handle MM.mm and MMmm -> Code copied from _import_local_thrift and adapted |
| 30 | for libpath in glob.glob(os.path.join(_ROOT_DIR, 'lib', 'py', 'build', 'lib.*')): |
| 31 | for pattern in ('-%d.%d', '-%d%d'): |
| 32 | postfix = pattern % (sys.version_info[0], sys.version_info[1]) |
| 33 | if libpath.endswith(postfix): |
| 34 | return libpath |
no test coverage detected