tama 1 éve
szülő
commit
736dc61caa
1 módosított fájl, 12 hozzáadás és 12 törlés
  1. 12 12
      main.py

+ 12 - 12
main.py

@@ -284,12 +284,12 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
                     else:
                         f.write(indented_str(0, ""))
                 elif "API.connect" in line:
-                    line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
+                    line_appid = line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
                     if mode == "floating":
-                        replaced = line.replace("0", "1")
+                        replaced = line_appid.replace("0", "1")
                         f.write(replaced)
                     else:
-                        f.write(line)
+                        f.write(line_appid)
                 else:
                     f.write(line)
         with open(xml_menu_path, "r") as f:
@@ -617,12 +617,12 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
                     else:
                         f.write(indented_str(0, ""))
                 elif "API.connect" in line:
-                    line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
+                    line_appid = line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
                     if mode == "floating":
-                        replaced = line.replace("0", "1")
+                        replaced = line_appid.replace("0", "1")
                         f.write(replaced)
                     else:
-                        f.write(line)
+                        f.write(line_appid)
                 else:
                     f.write(line)
         write_android_manifest(manifest_path, features, security)
@@ -858,12 +858,12 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
                     else:
                         f.write(indented_str(0, "", spaces=2))
                 elif "API.connect" in line:
-                    line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
+                    line_appid = line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
                     if mode == "floating":
-                        replaced = line.replace("0", "1")
+                        replaced = line_appid.replace("0", "1")
                         f.write(replaced)
                     else:
-                        f.write(line)
+                        f.write(line_appid)
                 else:
                     f.write(line)
         write_android_manifest(manifest_path, features, security)
@@ -1291,12 +1291,12 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
                     else:
                         f.write(indented_str(0, ""))
                 elif "API.connect" in line:
-                    line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
+                    line_appid = line.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
                     if mode == "floating":
-                        replaced = line.replace("0", "1")
+                        replaced = line_appid.replace("0", "1")
                         f.write(replaced)
                     else:
-                        f.write(line)
+                        f.write(line_appid)
                 else:
                     f.write(line)
         write_android_manifest(manifest_path, features, security)