Skip to content

Commit

Permalink
Added ~ path expansion for icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
connor committed Apr 3, 2023
1 parent 9d2d71a commit 9d5c6f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion streamdeck_ui/display/image_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from fractions import Fraction
from io import BytesIO
from typing import Callable, Tuple
import os

import cairosvg
import filetype
Expand All @@ -17,7 +18,7 @@ class ImageFilter(Filter):

def __init__(self, file: str):
super(ImageFilter, self).__init__()
self.file = file
self.file = os.path.expanduser(file)

def initialize(self, size: Tuple[int, int]):
# Each frame needs to have a unique hashcode. Start with file name as baseline.
Expand Down

0 comments on commit 9d5c6f4

Please sign in to comment.