Nomen Nescio wrote: > I'm running gpg in python to verify a signature. I can see that it is > working, because gpg is displaying the results. > > But I need a way to let the python script know this. According to the gpg > manual there is a return code from gpg of 0 if the verify is good and 1 if > it is bad. > > Can anyone tell me how I can get the python script to 'see' this return > code? >
How do you run GPG? I suggest using the subprocess module <http://docs.python.org/lib/module-subprocess.html>. If you just need something simple then you can use its call function <http://docs.python.org/lib/node236.html>. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list