aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-03-30 03:10:24 +0000
committerBen McGinnes <[email protected]>2018-03-30 03:10:24 +0000
commitde11f557a8698976faa3b6cfcead6eb8c9e5384f (patch)
tree9a210d583c1ce5df0e9308efbc641dd481afdeb2
parentMerge branch 'master' of ssh+git://playfair.gnupg.org/git/gpgme (diff)
downloadgpgme-de11f557a8698976faa3b6cfcead6eb8c9e5384f.tar.gz
gpgme-de11f557a8698976faa3b6cfcead6eb8c9e5384f.zip
docs: python bindings howto
* Updated groups work around example to make sure it uses the correct version of gpgconf for the user invoking it (determined by the engine info).
Diffstat (limited to '')
-rw-r--r--lang/python/docs/GPGMEpythonHOWTOen.org5
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org
index cb85b61b..e0a26642 100644
--- a/lang/python/docs/GPGMEpythonHOWTOen.org
+++ b/lang/python/docs/GPGMEpythonHOWTOen.org
@@ -1334,9 +1334,12 @@
this information in Python.
#+begin_src python
+ import gpg
import subprocess
- lines = subprocess.getoutput("gpgconf --list-options gpg").splitlines()
+ gpgconf = gpg.core.get_engine_info()[2].file_name
+ gpgconf_cmd "{0} --list-options gpg".format(gpgconf)
+ lines = subprocess.getoutput(gpgconf_cmd).splitlines()
for i in range(len(lines)):
if lines[i].startswith("group") is True: