fixed dependency bug
parent
9f94a738be
commit
bd0d04c317
|
@ -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"
|
6
main.py
6
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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue