aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/docs/GPGMEpythonHOWTOen.org
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-09-15 20:35:02 +0000
committerBen McGinnes <[email protected]>2018-09-15 20:35:02 +0000
commit7e9df9b9e33131f5d7c58ad58249f9ae766f1341 (patch)
tree0e80dae6f6f62e084f7be04f5ed14be883c2712d /lang/python/docs/GPGMEpythonHOWTOen.org
parentdocs: generated whitespace (diff)
downloadgpgme-7e9df9b9e33131f5d7c58ad58249f9ae766f1341.tar.gz
gpgme-7e9df9b9e33131f5d7c58ad58249f9ae766f1341.zip
docs: Python howto update
* lang/python/docs/GPGMEpythonHOWTOen.org: Added corresponding GPGME version number to table at the start and cut the shortcut from the groups.py example. * doc/gpgme-python-howto.texi: New export of Texinfo file for docs build.
Diffstat (limited to 'lang/python/docs/GPGMEpythonHOWTOen.org')
-rw-r--r--lang/python/docs/GPGMEpythonHOWTOen.org8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/python/docs/GPGMEpythonHOWTOen.org b/lang/python/docs/GPGMEpythonHOWTOen.org
index 1e5db6dd..c9f14213 100644
--- a/lang/python/docs/GPGMEpythonHOWTOen.org
+++ b/lang/python/docs/GPGMEpythonHOWTOen.org
@@ -16,6 +16,7 @@
:END:
| Version: | 0.1.4 |
+| GPGME Version: | 1.12.0-draft |
| Author: | Ben McGinnes <[email protected]> |
| Author GPG Key: | DB4724E6FA4286C92B4E55C4321E4E2373590E5D |
| Language: | Australian English, British English |
@@ -1982,8 +1983,13 @@ information in Python.
import subprocess
import sys
+if sys.platform == "win32":
+ gpgconfcmd = "gpgconf.exe --list-options gpg"
+else:
+ gpgconfcmd = "gpgconf --list-options gpg"
+
try:
- lines = subprocess.getoutput("gpgconf --list-options gpg").splitlines()
+ lines = subprocess.getoutput(gpgconfcmd).splitlines()
except:
process = subprocess.Popen(gpgconfcmd.split(), stdout=subprocess.PIPE)
procom = process.communicate()