Skip to content

Commit

Permalink
yeet_api: Switch to shutil, distutils is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimifr committed Jan 25, 2024
1 parent 57e6d0e commit e132dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yeet_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# SPDX-License-Identifier: MIT

import os
import distutils.spawn
import shutil

from pathlib import Path

if not distutils.spawn.find_executable("git"):
if not shutil.which("git"):
raise FileNotFoundError("Git executable is not found."
"\nFor Windows, install it from https://git-scm.com/downloads"
"\nFor Linux, it is best to use your distro package manager. If "
Expand Down

0 comments on commit e132dca

Please sign in to comment.