Make pyright happy and fix logging file

master
kirbylife 2023-03-13 13:46:04 -06:00
parent c647d6f347
commit 55d4d67f1c
3 changed files with 10 additions and 6 deletions

View File

@ -3,8 +3,8 @@ prefix:=/usr
temp:=/tmp/fpm-jolla
sourcePath:=$(shell pwd)
dependencies=$(shell for file in `cat dependencies.txt`;do echo "-d "$${file};done;)
version:=0.5.0
iteration:=9
version:=0.4.5
iteration:=5
all: clean build-tmp rpm-i686 rpm-jolla rpm-aarch64

View File

@ -6,3 +6,5 @@ Icon=harbour-muchkin
Exec=sailfish-qml harbour-muchkin
[X-Sailjail]
Sandboxing=Disabled
OrganizationName=org.kirbylife
ApplicationName=harbour-muchkin

View File

@ -1,4 +1,4 @@
import pyotherside
import pyotherside # pyright: ignore reportMissingImports
from PIL import Image, ImageDraw, ImageChops
from PIL.Image import Image as ImageType
from io import BytesIO
@ -10,11 +10,13 @@ import os
import shutil
import logging
logging_filename = os.path.join(os.getenv("HOME"),
logging_filename = os.path.join(os.path.expanduser("~"),
".local",
"share",
"org.git.kirbylife.harbour-muchkin",
"org.kirbylife",
"harbour-muchkin",
"muchkin.log")
os.makedirs(os.path.dirname(logging_filename), exist_ok=True)
logging.basicConfig(filename=logging_filename, filemode="w", level=logging.DEBUG)
def download_icon(url) -> ImageType: