Skip to content

Commit

Permalink
import_google_fonts: create directory if missing
Browse files Browse the repository at this point in the history
  • Loading branch information
bevanjkay committed May 15, 2024
1 parent 46f65ac commit b66c21c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions developer/bin/import_google_fonts
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ def write_cask(cask):
if f.read() == content:
return False

directory = os.path.dirname(path)
if not os.path.exists(directory):
os.makedirs(directory)

with open(path, "w") as f:
f.write(content)

Expand Down

0 comments on commit b66c21c

Please sign in to comment.