path bug fix

This commit is contained in:
Neythen 2021-05-01 12:09:21 +01:00
parent c94ea1f5c9
commit 61c27e5935

View File

@ -195,7 +195,7 @@ class StockTicker():
#Draw Ticker, current and change onto one image #Draw Ticker, current and change onto one image
def textToImage(self, TICKER, CURRENT, CHANGE, ARROW): def textToImage(self, TICKER, CURRENT, CHANGE, ARROW):
font = ImageFont.load("/home/pi/Desktop/stock_ticker/fonts/10x20.pil") font = ImageFont.load("./fonts/10x20.pil")
img = Image.new('RGB', (150, 32)) img = Image.new('RGB', (150, 32))
d = ImageDraw.Draw(img) d = ImageDraw.Draw(img)