diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /testing/mozbase/mozdebug | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/mozbase/mozdebug')
-rwxr-xr-x | testing/mozbase/mozdebug/mozdebug/mozdebug.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testing/mozbase/mozdebug/mozdebug/mozdebug.py b/testing/mozbase/mozdebug/mozdebug/mozdebug.py index beecc2cd9d..d8d0b85795 100755 --- a/testing/mozbase/mozdebug/mozdebug/mozdebug.py +++ b/testing/mozbase/mozdebug/mozdebug/mozdebug.py @@ -6,9 +6,9 @@ import json import os +import shutil import sys from collections import namedtuple -from distutils.spawn import find_executable from subprocess import check_output import mozinfo @@ -108,7 +108,7 @@ def get_debugger_path(debugger): if path: return path except Exception: - # Just default to find_executable instead. + # Just default to shutil.which instead. pass if mozinfo.os == "win" and debugger == "devenv.exe": @@ -122,10 +122,10 @@ def get_debugger_path(debugger): vsinfo[0]["installationPath"], "Common7", "IDE", "devenv.exe" ) except Exception: - # Just default to find_executable instead. + # Just default to shutil.which instead. pass - return find_executable(debugger) + return shutil.which(debugger) def get_debugger_info(debugger, debuggerArgs=None, debuggerInteractive=False): |