Skip to content

Commit 0a51e2d

Browse files
committed
Fixes
1 parent f50aee3 commit 0a51e2d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

python_generator/create_requirement_images.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
#!/usr/bin/env python3
22

3-
import traceback
43
from multiprocessing import Pool
4+
import json
5+
import os
6+
import traceback
57

68
from PIL import Image, ImageDraw, ImageFont
7-
import json
89

910
from get_imports import get_libs_for_project, get_files_for_project, get_learn_guide_cp_projects
1011

12+
os.makedirs("generated_images", exist_ok=True)
13+
1114
OUT_WIDTH = 800
1215
PADDING = 20
1316

python_generator/get_imports.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
def get_bundle(tag):
1414
url = f"https://adafruit-circuit-python.s3.amazonaws.com/bundles/adafruit/adafruit-circuitpython-bundle-{tag}.json"
15-
print("get bundle metadata from {url}")
15+
print(f"get bundle metadata from {url}")
1616
r = requests.get(url)
1717
with open(BUNDLE_DATA, "wb") as f:
1818
f.write(r.content)

0 commit comments

Comments
 (0)