Skip to content

Commit

Permalink
fix(scripts): Normalize flatc path on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
na2axl committed Oct 26, 2024
1 parent 395b3a7 commit c7b7e39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ def __init__(self, argv, script_name: str, script_version: str):
print_help(no_logo, script_name)
sys.exit(1)

# Check if running on Windows
if sys.platform.startswith('win'):
self.flatc_path = self.flatc_path.replace('/', '\\')
if not self.flatc_path.endswith(".exe"):
self.flatc_path += ".exe"


def run_subprocess(argv):
"""
Expand Down

0 comments on commit c7b7e39

Please sign in to comment.