Added macOS support (#968)

Co-authored-by: DevilXD <4180725+DevilXD@users.noreply.github.com>
This commit is contained in:
CrocchettoandDevilXD authored and GitHub committed 2026-03-07 09:49:58 +01:00
1 parent b685b445e9
commit 1166170fae
6 files changed
+143 -25

No files matched your search

+1 -1
View File
@@ -82,7 +82,7 @@ def lock_file(path: Path) -> tuple[bool, io.TextIOWrapper]:
except Exception:
return False, file
return True, file
if sys.platform == "linux":
if sys.platform in ("linux", "darwin"):
import fcntl
try:
fcntl.lockf(file, fcntl.LOCK_EX | fcntl.LOCK_NB)