Skip to content

Commit

Permalink
fix(scripts): Appending .exe extension on Windows executables.
Browse files Browse the repository at this point in the history
  • Loading branch information
na2axl committed Oct 31, 2024
1 parent 86f3b0a commit 95ee7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __init__(self, argv, script_name: str, script_version: str):
# Check if running on Windows
if sys.platform.startswith('win'):
self.flatc_path = self.flatc_path.replace('/', '\\')
if not self.flatc_path.endswith(".exe"):
if not self.flatc_path.lower().endswith(".exe"):
self.flatc_path += ".exe"


Expand Down

0 comments on commit 95ee7aa

Please sign in to comment.