Skip to content

Commit a1720ac

Browse files
committed
copy variable fonts around
1 parent 56e985f commit a1720ac

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • Batch.roboFontExt/lib/batchGenerators/variableFontsGenerator

Batch.roboFontExt/lib/batchGenerators/variableFontsGenerator/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,15 @@ def build(root, generateOptions, settings, progress, report):
427427
debug=settings["batchSettingExportDebug"]
428428
)
429429

430+
sourcePath = os.path.join(fontDir, tempFileName)
431+
destinationPath = os.path.join(fontDir, fileName)
430432
postProcessCallback(
431-
os.path.join(fontDir, tempFileName),
432-
os.path.join(fontDir, fileName)
433+
sourcePath,
434+
destinationPath
433435
)
436+
if os.path.exists(sourcePath):
437+
shutil.copyfile(sourcePath, destinationPath)
438+
os.remove(sourcePath)
434439

435440

436441
# ===========

0 commit comments

Comments
 (0)