Importing DLL into Python 3 without imp.load_dynamic
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Goal I am trying to add Windows support for Python Interface to Total Phase Aardvark that is currently Linux only . This is a wrapper for a device whose available interface is only a .so (Linux) or .dll (Windows) closed source binary. However, it was made as a Python package (not sure if that is the right term) rather than just standard C interface that your would load with ctypes. File Structure In this project, we have an ext folder that is the same level as the script doing the importing, with 32/64 libraries for Linux and Windows (added