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
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
......
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