On Tue, Jun 15, 2010 at 11:24 AM, kunal ghosh <kunal...@gmail.com> wrote:
> On Tue, Jun 15, 2010 at 12:45 PM, Rahul R <rahul8...@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 > i rather prefer running it as a script binding into a "C" (if thats possible , well that certainly works for sh scripts i dont know whether that works for python ) _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers