From 67fdf25e31f623aeda7005624b7fd5a751294304 Mon Sep 17 00:00:00 2001 From: mrpotatogun Date: Wed, 5 Jul 2023 19:34:43 -0400 Subject: [PATCH] linux uses convention of python3, bsd, notably freebsd uses python3.9 or whatever pythons you have installed to use. extract_assets.py hardcodes python for subsequent scripts based on linux convention, this change pulls from environment setting of PYTHON to use that instead to allow setting in main Makefile or environment variable for cleaner portability --- extract_assets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extract_assets.py b/extract_assets.py index bde5ef216e..d1afe3dab7 100755 --- a/extract_assets.py +++ b/extract_assets.py @@ -3,6 +3,8 @@ import os import json +#respect make setting PYTHON to use, instead of assuming linux convention +PYTHON_BIN=os.getenv('PYTHON') def read_asset_map(): with open("assets.json") as f: @@ -170,7 +172,7 @@ def main(): if mio0 == "@sound": rom = roms[lang] args = [ - "python3", + PYTHON_BIN, "tools/disassemble_sound.py", "baserom." + lang + ".z64", ]