added start and install script

master
Jan Umbach 2023-07-31 18:43:22 +02:00
parent fd0d14c909
commit 96e804764f
4 changed files with 23 additions and 1 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
label.png
.venv/

11
install.sh Normal file
View File

@ -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"

View File

@ -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"

8
start.sh Normal file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
BASEDIR=$(dirname "$0")
echo "Running LabelPrinting script in Loop:"
cd $BASEDIR
. .venv/bin/activate
python3 main.py