From: Bastian Germann Date: Tue, 9 Sep 2025 22:28:43 +0200 Subject: sfd2ttf2master: Convert path separator --- --- a/scripts/sfd2ttf2master_ttfFolder.py +++ b/scripts/sfd2ttf2master_ttfFolder.py @@ -8,12 +8,12 @@ for file in os.listdir(): font = fontforge.open(file) font.generate(os.path.splitext(file)[0]+".ttf") -if not path.exists(os.getcwd() + "\master_ttf"): - os.mkdir(os.getcwd() + "\master_ttf") +if not path.exists(os.getcwd() + "/master_ttf"): + os.mkdir(os.getcwd() + "/master_ttf") sourcepath = os.getcwd() sourcefiles = os.listdir(sourcepath) -destinationpath = os.getcwd() + "\master_ttf" +destinationpath = os.getcwd() + "/master_ttf" for file in sourcefiles: if file.endswith('.ttf'): shutil.move(os.path.join(sourcepath,file), os.path.join(destinationpath,file))