Skip to content

Commit 02e1e6b

Browse files
committed
fix: incorrect bin dir path find logic
1 parent 80ddff1 commit 02e1e6b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pytailwindcss_extra/main.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313

1414

1515
def main() -> None:
16-
bin_dir_path = environ.get("PYTAILWINDCSS_EXTRA_BIN_DIR")
17-
if not bin_dir_path:
16+
temp_bin_dir_path = environ.get("PYTAILWINDCSS_EXTRA_BIN_DIR")
17+
if not temp_bin_dir_path:
1818
bin_dir_path: Path = Path(__file__).parent.resolve() / "bin"
19-
bin_dir_path = Path(bin_dir_path)
19+
else:
20+
bin_dir_path = Path(temp_bin_dir_path)
2021

2122
# TODO: cache the latest version so it doesn't need to send a request each run
2223
version = environ.get("PYTAILWINDCSS_EXTRA_VERSION", "latest")

0 commit comments

Comments
 (0)