Skip to content

Hooking into another program #3

Answered by segevfiner
TechStudent10 asked this question in Q&A
Discussion options

You must be logged in to vote

Should be possible. A module written in Cython is just a normal extension module after compilation (In Windows, a .pyd file, which is a DLL that Python loads dynamically and calls back to the Python DLL), and Python can be embedded into host applications using its C API. https://docs.python.org/3/extending/embedding.html

It can be done either using a system installed Python on PATH (I don't remember if user installation are on PATH for library loading, but could be done with them if they are as well), or the embeddable Python distribution for Windows

The embeddable distributions of Python for Windows are available in their download page: https://www.python.org/downloads/release/python-3110/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TechStudent10
Comment options

Answer selected by TechStudent10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants