We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9b502c + 5dd4102 commit 9ef3108Copy full SHA for 9ef3108
third_party_license_file_generator/site_packages.py
@@ -1,6 +1,6 @@
1
# -*- coding: utf-8 -*-
2
3
-import distutils
+import shutil
4
import os
5
import shlex
6
import signal
@@ -116,7 +116,7 @@ def __init__(
116
do_not_skip_not_required_packages=False,
117
):
118
self._requirements_path = requirements_path
119
- self._python_path = python_path if python_path is not None else distutils.spawn.find_executable("python3") # noqa
+ self._python_path = python_path if python_path is not None else shutil.which("python3") # noqa
120
self._skip_prefixes = skip_prefixes
121
self._use_internet = use_internet
122
self._license_overrides = license_overrides if license_overrides is not None else {}
0 commit comments