Injecting python function in an embedded python engine

prakash jp prakash.stack at gmail.com
Wed Apr 8 03:41:38 EDT 2009


import os
ch = os.system("import -window root temp.png")
print ch
 after that no way to store the screen shot

regards
Prakash

On Mon, Apr 6, 2009 at 10:28 PM, Roberto Fichera <kernel at tekno-soft.it>wrote:

> Hi All in the list,
>
> I've embedded python v2.6.x engine into my application without any problem.
> Now I would like to inject some additional functions after importing a
> python module.
> So, basically I'm importing a python module via PyImport_ImportModule()
> function.
> The python module is a simple set of functions and I would check if some
> functions
> does exist or not, than if doesn't I would add it from my C application.
> Checking if
> a function does exist or not isn't an issue, it works without any
> problem, my problem
> is only how to inject a new function in an already imported module.
>
> Thanks in advance,
> Roberto Fichera.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090408/77427545/attachment.html>


More information about the Python-list mailing list