diff --git a/install.sh b/install.sh index 15f794c..96a3f5a 100644 --- a/install.sh +++ b/install.sh @@ -7,5 +7,6 @@ cd $BASEDIR python3 -m venv .venv . .venv/bin/activate pip install -r requirements.txt +pip install --force-reinstall -v "Pillow==9.5.0" echo "Done" \ No newline at end of file diff --git a/main.py b/main.py index b1683d1..7f9428b 100644 --- a/main.py +++ b/main.py @@ -10,8 +10,8 @@ from pdf2image import convert_from_path downloads_path = str(Path.home() / "Downloads") labelPathDir = downloads_path -labelPath = labelPathDir + "label.pdf" -labelPathRot90 = labelPathDir + "label_rot90.pdf" +labelPath = labelPathDir + "/label.pdf" +labelPathRot90 = labelPathDir + "/label_rot90.pdf" printer_identifier = "tcp://192.168.1.70" @@ -76,6 +76,8 @@ printPDF(labelPathRot90) class Event(LoggingEventHandler): def on_modified(self, event): path = event.src_path + print(path) + print(labelPath) if (path == labelPath or path == labelPathRot90): printPDF(path)