From f5e5e44f2bc1667ed05a4924396e514f9c5aa32a Mon Sep 17 00:00:00 2001 From: Petr Kratina Date: Sun, 6 Aug 2023 02:43:28 +0200 Subject: [PATCH] added 'install' script to install dependencies on debian based systems --- install | 8 ++++++++ k40whisperer | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 install diff --git a/install b/install new file mode 100755 index 0000000..ecbf596 --- /dev/null +++ b/install @@ -0,0 +1,8 @@ +#!/bin/bash +sudo apt install python3 python3-venv python3-tk +python3 -m venv venv +source venv/bin/activate +pip install lxml +pip install pyusb +pip install pillow +pip install pyclipper diff --git a/k40whisperer b/k40whisperer index 79f1e99..7b8cacc 100755 --- a/k40whisperer +++ b/k40whisperer @@ -1,3 +1,5 @@ #!/bin/bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) -python3 $SCRIPT_DIR/k40_whisperer.py +cd $SCRIPT_DIR +source venv/bin/activate +python k40_whisperer.py