From b457951f5f7184532b3817a2f3625abc160f430e Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Fri, 26 Dec 2014 09:49:52 +0100 Subject: [PATCH] don't expect openssl to be in cwd --- analyze.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/analyze.py b/analyze.py index a8b2a18..fa00d89 100755 --- a/analyze.py +++ b/analyze.py @@ -410,7 +410,7 @@ def build_ciphers_lists(opensslbin): # use system openssl if not on linux 64 if not opensslbin: if platform.system() == 'Linux' and platform.architecture()[0] == '64bit': - opensslbin='./openssl' + opensslbin=mypath + '/openssl' else: opensslbin='openssl' print("warning: analyze.py is using system's openssl, which may limit the tested ciphers and recommendations") @@ -456,6 +456,7 @@ def main(): help='use nagios-conformant exit codes') args = parser.parse_args() + global mypath mypath = os.path.dirname(os.path.realpath(sys.argv[0])) if args.debug: