Skip to content

Commit

Permalink
util.py refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Mar 15, 2024
1 parent 1e05e69 commit 879a3a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apio/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ def get_bin_dir() -> Path:
# In this case the main file is: venv/Scripts/apio.exe/__main__.py!
# This is not good because venv/Scripts/apio.exe is not a directory
# So here we go with the workaround:
if str(bin_dir).endswith(".exe"):
if bin_dir.suffix == ".exe":
return bin_dir.parent

return bin_dir
Expand Down

0 comments on commit 879a3a6

Please sign in to comment.