From 8008961573b6fe8a332c144c58077ede50438e2c Mon Sep 17 00:00:00 2001 From: Vinay Vennela <52368723+vinayvennela@users.noreply.github.com> Date: Tue, 27 Oct 2020 11:56:50 +0530 Subject: [PATCH] Update server.py When executable is found on path then store its absolute path --- browsermobproxy/server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/browsermobproxy/server.py b/browsermobproxy/server.py index a61e1a0..a4ed458 100644 --- a/browsermobproxy/server.py +++ b/browsermobproxy/server.py @@ -79,6 +79,8 @@ def __init__(self, path='browsermob-proxy', options=None): for directory in os.environ['PATH'].split(path_var_sep): if(os.path.isfile(os.path.join(directory, path))): exec_not_on_path = False + # When executable is found on path then store its absolute path + path = os.path.join(directory, path) break if not os.path.isfile(path) and exec_not_on_path: