pimoroni / automation-hat

Python library and examples for the Pimoroni Automation HAT, pHAT and HAT Mini
https://shop.pimoroni.com/products/automation-hat
MIT License
121 stars 42 forks source link

Output.py has a relative link which keeps the example from being portable #46

Closed KeithPeterson closed 2 years ago

KeithPeterson commented 2 years ago

Line 29 is: image = Image.open("images/outputs-blank.jpg")

This is a relative link, which crashes the example when it moves from the target location where installed by the Pimoroni installer.

This replacement line allows this example to be portable when installed that way:

   "/home/pi/Pimoroni/automationhat/examples/hat-mini/images/outputs-blank.jpg")