mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-04 11:48:22 +02:00
10 lines
435 B
Python
10 lines
435 B
Python
import subprocess
|
|
|
|
from source.definition import *
|
|
|
|
|
|
def patch_image(fc, gui):
|
|
for i, file in enumerate(fc["img"]):
|
|
gui.progress(statut=gui.translate("Converting images") + f"\n({i + 1}/{len(fc['img'])}) {file}", add=1)
|
|
subprocess.run(["./tools/szs/wimgt", "ENCODE", "./file/" + file, "-x", fc["img"][file], "--overwrite"],
|
|
creationflags=CREATE_NO_WINDOW, check=True, stdout=subprocess.PIPE)
|