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: