mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
Check path string properly (#9367)
A minor whoopsie, 158367bf9
forgot to update this line.
I'm not sure how this gets tested in CI.
This commit is contained in:
parent
38f4d9e335
commit
08c60f513b
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ def find_ruff_bin() -> str:
|
|||
user_scheme = "posix_user"
|
||||
|
||||
path = os.path.join(sysconfig.get_path("scripts", scheme=user_scheme), ruff_exe)
|
||||
if path.is_file():
|
||||
if os.path.isfile(path):
|
||||
return path
|
||||
|
||||
raise FileNotFoundError(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue