[SOLVED] tis-add-fonts problem
Published: October 19, 2023 - 8:45 AM
Good morning,
I'm on Wapt 2.4 Enterprise
I would like to use tis-add-fonts to install fonts on my Windows PCs
https://wapt.tranquil.it/store/fr/tis-add-fonts
This line of code doesn't seem to work
run(f'"{bin_path}" /copy')
The FontReg64.exe file, located in fonts/, contains the extracted *.ttf files in that directory
If I use the command line to run "FontReg64.exe /copy", it works, but not in the script
an idea
I'm on Wapt 2.4 Enterprise
I would like to use tis-add-fonts to install fonts on my Windows PCs
https://wapt.tranquil.it/store/fr/tis-add-fonts
Code: Select all
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')
The FontReg64.exe file, located in fonts/, contains the extracted *.ttf files in that directory
If I use the command line to run "FontReg64.exe /copy", it works, but not in the script
an idea