[BangPypers] python with c bindings
kunal ghosh
kunal.t2 at gmail.com
Tue Jun 15 09:24:19 CEST 2010
On Tue, Jun 15, 2010 at 12:45 PM, Rahul R <rahul8590 at gmail.com> wrote:
> well recently i learned about handling shell scripts inside c files . well
> i was wondering since python is also scripting language can i bind the
> python script inside a "C" file and then run it.well on the front it may
> look like normal compilation of c program, but in the backend i guess the
> python script is being executed.
>
you can #include<python.h>
in your c program and then call the python modules in a python script
as explained here http://www.linuxjournal.com/article/8497
--
regards
-------
Kunal Ghosh
Dept of Computer Sc. & Engineering.
Sir MVIT
Bangalore,India
Blog:kunalghosh.wordpress.com
Website:www.kunalghosh.net46.net
More information about the BangPypers
mailing list