Просмотр исходного кода

Fix game engine sprites on windows (pt2)

Willy-JL 1 год назад
Родитель
Сommit
762688f712
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      air_arkanoid/application.fam
  2. 2 1
      air_labyrinth/application.fam

+ 1 - 1
air_arkanoid/application.fam

@@ -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",
         ),
     ),

+ 2 - 1
air_labyrinth/application.fam

@@ -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",
     #        ),
     #    ),
 )