Commit 58f794eb authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

use subprocess instead of os.system()

parent 7daf06f6
......@@ -157,11 +157,12 @@ except ImportError:
HAVE_GPG = False
import os
import subprocess
if == 'nt':
gpg_cmd = 'gpg -h >nul 2>&1'
gpg_cmd = 'gpg -h >/dev/null 2>&1'
if os.system(gpg_cmd):
if, shell=True):
HAVE_GPG = False
# Depends on use_latex option. Will be correctly set after we config options are
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment