python: Print path of the Python module used during tests.

* lang/python/tests/initial.py: Print path of the Python module used
during tests.  Useful to detect if by any mistake the wrong module is
picked up.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2017-03-02 16:06:29 +01:00
parent ef035f079f
commit 41398779ab
No known key found for this signature in database
GPG Key ID: DD1A52F9DA8C9020

View File

@ -24,6 +24,9 @@ import os
import subprocess
import gpg
import support
print("Using gpg module from {0!r}.".format(os.path.dirname(gpg.__file__)))
support.init_gpgme(gpg.constants.protocol.OpenPGP)
subprocess.check_call([os.path.join(os.getenv('top_srcdir'),