mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-23 01:57:48 -06:00
chore: lint and type the remaining tools
This commit is contained in:
1 parent
54521380dc
commit
fe243ce8a8
11 files changed
+27
-31
No files matched your search
@@ -29,6 +29,7 @@ Usage:
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import contextlib
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
@@ -81,10 +82,8 @@ def busy_paths() -> set[str]:
|
||||
if not pid.name.isdigit():
|
||||
continue
|
||||
links = [pid / "cwd"]
|
||||
try:
|
||||
with contextlib.suppress(OSError):
|
||||
links += list((pid / "fd").iterdir())
|
||||
except OSError:
|
||||
pass
|
||||
for link in links:
|
||||
try:
|
||||
found.add(os.readlink(link))
|
||||
|
||||
Reference in new issue
Block a user