Skip to content

Commit 829bc65

Browse files
committed
fix: "[Errno 13] Permission denied" on macos, binary must also be executable on mac #4
1 parent 109701d commit 829bc65

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

fastapi_tailwind/binary.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ def get_tailwind_binary_path() -> Optional[Path]:
3838
elif operating_system == "Linux":
3939
path = binaries_path.joinpath(f"tailwindcss-linux-{cpu_architecture}")
4040

41-
# On linux the binary is required to be executable.
41+
if operating_system == "Linux" or operating_system == "Darwin":
42+
# On linux and mac the binary is required to be executable.
43+
4244
if path.exists():
4345
is_executable = os.access(path, os.X_OK)
4446

0 commit comments

Comments
 (0)