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

make gpg work under windows. Fixes #6953

parent 6a7c5f8f
No related branches found
No related tags found
No related merge requests found
......@@ -156,8 +156,12 @@ try:
except ImportError:
HAVE_GPG = False
else:
from os import system
if system('gpg -h >/dev/null 2>&1'):
import os
if os.name == 'nt':
gpg_cmd = 'gpg -h >null 2>&1'
else:
gpg_cmd = 'gpg -h >/dev/null 2>&1'
if os.system(gpg_cmd):
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