<div dir="ltr"><div>Thanks for the tips and hints! I found this page also explaining well on how to embed python bi-directionally in FPC. <a href="https://docs.python.org/3.4/extending/embedding.html">https://docs.python.org/3.4/extending/embedding.html</a></div><div><br></div><div>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.</div><div><br></div><div>Darius</div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
<table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:13px"><a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-green-avg-v1.png" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free. <a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avg.com</a>
</td>
</tr>
</table><a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 16, 2018 at 9:59 AM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
On Fri, 16 Feb 2018, leledumbo via fpc-pascal wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does anyone know of a minimal example or pseudo code or just an<br>
</blockquote>
explanation?<br>
<br>
Python actually provides a Python.h that you can convert to a Pascal unit.<br>
But inside, it includes a bunch of other header files and conversion might<br>
be a tedious task. If you made it, though, simply call:<br>
<br>
Py_Initialize();<br>
Py_WhateverThereAreMultipleCho<wbr>icesHere(ProbablyAPythonScript<wbr>AsCString);<br>
Py_Finalize();<br>
<br>
and you're done.<br>
</blockquote>
<br></span>
This task has been done for you. See:<br>
<br>
<a href="http://wiki.freepascal.org/Python4Delphi" target="_blank" rel="noreferrer">http://wiki.freepascal.org/Pyt<wbr>hon4Delphi</a><span class="HOEnZb"><font color="#888888"><br>
<br>
Michael.</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.or<wbr>g</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank" rel="noreferrer">http://lists.freepascal.org/cg<wbr>i-bin/mailman/listinfo/fpc-pas<wbr>cal</a></div></div></blockquote></div><br></div>