Description: Find the ruff binary in the Debian system bin directory
Forwarded: not-needed
---
Index: ruff/python/ruff/_find_ruff.py
===================================================================
--- ruff.orig/python/ruff/_find_ruff.py
+++ ruff/python/ruff/_find_ruff.py
@@ -14,6 +14,8 @@ def find_ruff_bin() -> str:
     ruff_exe = "ruff" + sysconfig.get_config_var("EXE")

     targets = [
+        # Debian: system scripts dir (posix_prefix scheme), e.g. /usr/bin
+        sysconfig.get_path("scripts", "posix_prefix", vars={"base": sys.base_prefix}),
         # The scripts directory for the current Python
         sysconfig.get_path("scripts"),
         # The scripts directory for the base prefix
