Fixes missing sqlite3 module in python3 ()

Cleanup
This commit is contained in:
Mirko 2019-11-24 23:49:08 +01:00 committed by Mathieu Virbel
parent eacd88bf3f
commit 921f6b209d
6 changed files with 52 additions and 12 deletions
recipes/python3/mock_modules/_sqlite3

View file

@ -0,0 +1,10 @@
"""
def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__, '_sqlite3.cpython-37m-darwin.so')
__loader__ = None; del __bootstrap__, __loader__
print("demo")
imp.load_dynamic(__name__,__file__)
__bootstrap__()
"""