Ich nutze Wapt 2.4 Enterprise
Ich möchte tis-add-fonts verwenden, um Schriftarten auf meinen Windows-PCs zu installieren
https://wapt.tranquil.it/store/fr/tis-add-fonts
Code: Alle auswählen
def install():
# Declaring local variables
if iswin64():
bin_name = "FontReg64.exe"
else:
bin_name = "FontReg32.exe"
fonts_path = os.path.abspath("fonts")
bin_path = makepath(fonts_path, bin_name)
# Installing the fonts
for zip in glob.glob("*.zip"):
unzip(zip, "fonts", "*.ttf", extract_with_full_paths=False)
for font in glob.glob(f"{fonts_path}/*.ttf"):
print("Installing Font: %s" % font.split("\\")[-1])
run(f'"{bin_path}" /copy')
print("INFO: The PC must be rebooted for the fonts to appear")
run(f'"{bin_path}" /copy')
Die Datei FontReg64.exe, die sich im Verzeichnis fonts/ befindet, enthält die extrahierten *.ttf-Dateien aus diesem Verzeichnis
Wenn ich "FontReg64.exe /copy" über die Kommandozeile ausführe, funktioniert es, aber nicht im Skript
eine Idee
