mirror of
https://github.com/simbelmas/gotify-dunst.git
synced 2026-01-19 14:35:23 +01:00
Add directory check
This commit is contained in:
4
main.py
4
main.py
@@ -8,7 +8,9 @@ domain = "push.example.com"
|
||||
token = "z2Uny92TZBzsukg"
|
||||
|
||||
home = os.path.expanduser('~')
|
||||
path = "{}/.cache/gotify-dust".format(home)
|
||||
path = "{}/.cache/gotify-dunst".format(home)
|
||||
if not os.path.isdir(path):
|
||||
os.mkdir(path)
|
||||
|
||||
def get_picture(appid):
|
||||
imgPath = "{}/{}.jpg".format(path, appid)
|
||||
|
||||
Reference in New Issue
Block a user