Thanks for the tips and hints! I found this page also explaining well on how to embed python bi-directionally in FPC. https://docs.python.org/3.4/extending/embedding.html
The P4D code was very helpful as well. I stripped all the object and component code and now have a working FPC only python binding for Python 3.6. I'm still cleaning up the code and testing the demo apps from the python site, but if someone is interested I can post a link here. Darius <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free. www.avg.com <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> On Fri, Feb 16, 2018 at 9:59 AM, Michael Van Canneyt <mich...@freepascal.org > wrote: > > > On Fri, 16 Feb 2018, leledumbo via fpc-pascal wrote: > > Does anyone know of a minimal example or pseudo code or just an >>> >> explanation? >> >> Python actually provides a Python.h that you can convert to a Pascal unit. >> But inside, it includes a bunch of other header files and conversion might >> be a tedious task. If you made it, though, simply call: >> >> Py_Initialize(); >> Py_WhateverThereAreMultipleChoicesHere(ProbablyAPythonScriptAsCString); >> Py_Finalize(); >> >> and you're done. >> > > This task has been done for you. See: > > http://wiki.freepascal.org/Python4Delphi > > Michael. > > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal