python module dlls

后端 未结 4 1250

Is there a way to make a python module load a dll in my application directory rather than the version that came with the python installation, without making changes to the pytho

4条回答
  •  一向
    一向 (楼主)
    2021-02-12 11:43

    Ok it terns out python always loads the dll in the same directory as the pyd file, regardless of what the python and os paths are set to.

    So I needed to copy the _sqlite3.pyd from python/v2.5/DLLS to my apps directory where the new sqlite3.dll is, making it load my new dll, rather than the one that comes with python (since the pyd files seem to follow the PYTHONPATH, even though the actaul dlls themselves dont).

提交回复
热议问题