I am performing a simple operation to copy font file(ttf extension) from a downloaded location to fonts folder, but its not working,
usrPath = os.environ['USERPROFILE']
src=downloadFont()
print("Downloaded Location:", src)
#dst=usrPath[0]+':\\Windows\\Fonts\\anmollipi.ttf' # this one doesnt
dst="C:\\Users\\Teacher\\Desktop" # this one works
print("Install location",dst)
copyfont(src,dst)
I hope some one can look into and help me out !!!
make sure you have read write access to Fonts folder, sometimes even if you are logged in as user on a system with Admin rights you need to change the folder permission to perform the file write operation…