Sono su Wapt 2.4 Enterprise
Vorrei usare tis-add-fonts per installare i font sui miei PC Windows
https://wapt.tranquil.it/store/fr/tis-add-fonts
Codice: Seleziona tutto
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")
esegui(f'"{bin_path}" /copia')
Il file FontReg64.exe, situato in fonts/, contiene i file *.ttf estratti in quella directory
Se utilizzo la riga di comando per eseguire "FontReg64.exe /copy", funziona, ma non nello script
un'idea
