Make pyright happy and fix logging file
parent
c647d6f347
commit
55d4d67f1c
4
Makefile
4
Makefile
|
@ -3,8 +3,8 @@ prefix:=/usr
|
||||||
temp:=/tmp/fpm-jolla
|
temp:=/tmp/fpm-jolla
|
||||||
sourcePath:=$(shell pwd)
|
sourcePath:=$(shell pwd)
|
||||||
dependencies=$(shell for file in `cat dependencies.txt`;do echo "-d "$${file};done;)
|
dependencies=$(shell for file in `cat dependencies.txt`;do echo "-d "$${file};done;)
|
||||||
version:=0.5.0
|
version:=0.4.5
|
||||||
iteration:=9
|
iteration:=5
|
||||||
|
|
||||||
all: clean build-tmp rpm-i686 rpm-jolla rpm-aarch64
|
all: clean build-tmp rpm-i686 rpm-jolla rpm-aarch64
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,6 @@ Name=Muchkin
|
||||||
Icon=harbour-muchkin
|
Icon=harbour-muchkin
|
||||||
Exec=sailfish-qml harbour-muchkin
|
Exec=sailfish-qml harbour-muchkin
|
||||||
[X-Sailjail]
|
[X-Sailjail]
|
||||||
Sandboxing=Disabled
|
Sandboxing=Disabled
|
||||||
|
OrganizationName=org.kirbylife
|
||||||
|
ApplicationName=harbour-muchkin
|
|
@ -1,4 +1,4 @@
|
||||||
import pyotherside
|
import pyotherside # pyright: ignore reportMissingImports
|
||||||
from PIL import Image, ImageDraw, ImageChops
|
from PIL import Image, ImageDraw, ImageChops
|
||||||
from PIL.Image import Image as ImageType
|
from PIL.Image import Image as ImageType
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
@ -10,11 +10,13 @@ import os
|
||||||
import shutil
|
import shutil
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
logging_filename = os.path.join(os.getenv("HOME"),
|
logging_filename = os.path.join(os.path.expanduser("~"),
|
||||||
".local",
|
".local",
|
||||||
"share",
|
"share",
|
||||||
"org.git.kirbylife.harbour-muchkin",
|
"org.kirbylife",
|
||||||
|
"harbour-muchkin",
|
||||||
"muchkin.log")
|
"muchkin.log")
|
||||||
|
os.makedirs(os.path.dirname(logging_filename), exist_ok=True)
|
||||||
logging.basicConfig(filename=logging_filename, filemode="w", level=logging.DEBUG)
|
logging.basicConfig(filename=logging_filename, filemode="w", level=logging.DEBUG)
|
||||||
|
|
||||||
def download_icon(url) -> ImageType:
|
def download_icon(url) -> ImageType:
|
||||||
|
|
Loading…
Reference in New Issue