| 1 |
From: Bastian Germann <[email protected]> |
| 2 |
Date: Tue, 9 Sep 2025 22:28:43 +0200 |
| 3 |
Subject: sfd2ttf2master: Convert path separator |
| 4 |
|
| 5 |
--- |
| 6 |
--- a/scripts/sfd2ttf2master_ttfFolder.py |
| 7 |
+++ b/scripts/sfd2ttf2master_ttfFolder.py |
| 8 |
@@ -8,12 +8,12 @@ for file in os.listdir(): |
| 9 |
font = fontforge.open(file) |
| 10 |
font.generate(os.path.splitext(file)[0]+".ttf") |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
+if not path.exists(os.getcwd() + "/master_ttf"): |
| 15 |
+ os.mkdir(os.getcwd() + "/master_ttf") |
| 16 |
|
| 17 |
sourcepath = os.getcwd() |
| 18 |
sourcefiles = os.listdir(sourcepath) |
| 19 |
|
| 20 |
+destinationpath = os.getcwd() + "/master_ttf" |
| 21 |
for file in sourcefiles: |
| 22 |
if file.endswith('.ttf'): |
| 23 |
shutil.move(os.path.join(sourcepath,file), os.path.join(destinationpath,file)) |