added start and install script
parent
fd0d14c909
commit
96e804764f
|
@ -0,0 +1,2 @@
|
|||
label.png
|
||||
.venv/
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
echo "installing LabelPrinting in $BASEDIR"
|
||||
cd $BASEDIR
|
||||
|
||||
python3 -m venv .venv
|
||||
. .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
|
||||
echo "Done"
|
3
main.py
3
main.py
|
@ -7,7 +7,8 @@ from watchdog.events import LoggingEventHandler
|
|||
|
||||
from pdf2image import convert_from_path
|
||||
|
||||
labelPathDir = "/home/jan/Downloads/"
|
||||
downloads_path = str(Path.home() / "Downloads")
|
||||
labelPathDir = downloads_path
|
||||
|
||||
labelPath = labelPathDir + "label.pdf"
|
||||
labelPathRot90 = labelPathDir + "label_rot90.pdf"
|
||||
|
|
Loading…
Reference in New Issue