Procházet zdrojové kódy

Fix game engine sprites on windows (pt2)

Willy-JL před 1 rokem
rodič
revize
762688f712
2 změnil soubory, kde provedl 3 přidání a 2 odebrání
  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=(
     fap_extbuild=(
         ExtFile(
         ExtFile(
             path="${FAP_SRC_DIR}/assets",
             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",
             + " ${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=(
     #    fap_extbuild=(
     #        ExtFile(
     #        ExtFile(
     #            path="${FAP_SRC_DIR}/assets",
     #            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",
     #        ),
     #        ),
     #    ),
     #    ),
 )
 )