From cf5c3568d441175584946400bfae38eb2e6c6d5a Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 17 Dec 2011 18:07:56 +0100 Subject: [PATCH] use subprocess instead of os.system() --- src/common/gajim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/gajim.py b/src/common/gajim.py index d27395471..ac05c88e9 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -157,11 +157,12 @@ except ImportError: HAVE_GPG = False else: import os + import subprocess if os.name == 'nt': gpg_cmd = 'gpg -h >nul 2>&1' else: gpg_cmd = 'gpg -h >/dev/null 2>&1' - if os.system(gpg_cmd): + if subprocess.call(gpg_cmd, shell=True): HAVE_GPG = False # Depends on use_latex option. Will be correctly set after we config options are