diff --git a/install.sh b/install.sh index 08cb30e..ed3c241 100755 --- a/install.sh +++ b/install.sh @@ -7,14 +7,14 @@ if [ -d $TARGET_DIR ]; then fi mkdir -p $TARGET_DIR git clone git@git.urmel.de:Kyattsukuro/fledermaus.git "$TARGET_DIR" -python -m venv $TARGET_DIR/.venv +python3 -m venv $TARGET_DIR/.venv source $TARGET_DIR/.venv/bin/activate pip install -r $TARGET_DIR/requirements.txt mkdir -p $HOME/.local/share/bin/ rm -r $HOME/.local/share/bin/fledermaus-formater > /dev/zero -ln -s $TARGET_DIR/run.sh ~/.local/share/bin/fledermaus-formater +ln -s $TARGET_DIR/run.sh $HOME/.local/share/bin/fledermaus-formater if [[ ":$PATH:" != *":$HOME/.local/share/bin:"* ]]; then echo 'export PATH="$HOME/.local/share/bin:$PATH"' >> ~/.bashrc diff --git a/run.sh b/run.sh index d26757b..06de5b4 100755 --- a/run.sh +++ b/run.sh @@ -3,4 +3,5 @@ SCRIPT_DIR="$HOME/.config/fledermaus-formatter" cd $SCRIPT_DIR -python __init__.py $@ \ No newline at end of file +source $SCRIPT_DIR/.venv/bin/activate +$SCRIPT_DIR/.venv/bin/python3 __init__.py $@ \ No newline at end of file