[fpc-pascal] Python interaction... how?
dhkblaszyk at gmail.com
Thu Feb 15 16:31:21 CET 2018
I just cannot wrap my head around this one. I would like to implement scripting support to a pure FPC application. The application implements some modifier on an internal data structure which will be exposed to python as a module. The data structure itself is managed by the calling application. How to do this?
- FPC app has integer variable a=1
- FPC app calls python script
- Python script adds 10 to a eg pymod.increase_counter(10)
- FPC app variable a is now 11
Does anyone know of a minimal example or pseudo code or just an explanation?
More information about the fpc-pascal