Skip to content
Snippets Groups Projects
Commit cf5c3568 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

use subprocess instead of os.system()

parent f8922005
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment