@@ -12,7 +12,7 @@ App(
fap_extbuild=(
ExtFile(
path="${FAP_SRC_DIR}/assets",
- command=("python3" if __import__("shutil").which("python3") else "python")
+ command=("python" if __import__("sys").platform == "win32" else "python3")
+ " ${FAP_SRC_DIR}/engine/scripts/sprite_builder.py ${FAP_SRC_DIR.abspath}/sprites ${TARGET.abspath}/sprites",
),
@@ -14,7 +14,8 @@ App(
# fap_extbuild=(
# ExtFile(
# path="${FAP_SRC_DIR}/assets",
- # command="python3 ${FAP_SRC_DIR}/engine/scripts/sprite_builder.py ${FAP_SRC_DIR.abspath}/sprites ${TARGET.abspath}/sprites",
+ # command=("python" if __import__("sys").platform == "win32" else "python3")
+ # + " ${FAP_SRC_DIR}/engine/scripts/sprite_builder.py ${FAP_SRC_DIR.abspath}/sprites ${TARGET.abspath}/sprites",
# ),
)