Skip to content

Commit

Permalink
don't expect openssl to be in cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Riquer committed Dec 26, 2014
1 parent ac15fc7 commit b457951
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b457951

Please sign in to comment.