je suis sur wapt 2.4 entreprise
je voudrais utiliser pour installer tis-add-fonts des fonts sur mes pc windows
https://wapt.tranquil.it/store/fr/tis-add-fonts
Code : Tout sélectionner
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')
l'exe FontReg64.exe qui est dans fonts/ a dans ce répertoire les *.ttf décompressé
si en ligne de commande je fais un "FontReg64.exe /copy" cela fonctionne mais pas dans le script
une idée