diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:34:50 +0000 |
commit | def92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch) | |
tree | 2ef34b9ad8bb9a9220e05d60352558b15f513894 /testing/mozbase/mozdebug | |
parent | Adding debian version 125.0.3-1. (diff) | |
download | firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.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): |