Skip to content

Commit 9ef3108

Browse files
authored
Merge pull request #19 from QuickRelease/master
Replace distutils.spawn.find_executable with shutil.which
2 parents d9b502c + 5dd4102 commit 9ef3108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party_license_file_generator/site_packages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
import distutils
3+
import shutil
44
import os
55
import shlex
66
import signal
@@ -116,7 +116,7 @@ def __init__(
116116
do_not_skip_not_required_packages=False,
117117
):
118118
self._requirements_path = requirements_path
119-
self._python_path = python_path if python_path is not None else distutils.spawn.find_executable("python3") # noqa
119+
self._python_path = python_path if python_path is not None else shutil.which("python3") # noqa
120120
self._skip_prefixes = skip_prefixes
121121
self._use_internet = use_internet
122122
self._license_overrides = license_overrides if license_overrides is not None else {}

0 commit comments

Comments
 (0)