From 3b4ad62c34ee6f35bb9385ba094f9dccd20df3cc Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Wed, 8 Nov 2023 01:52:56 +0300 Subject: [PATCH] run file for python virtual env --- README.md | 3 +++ run | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100755 run diff --git a/README.md b/README.md index 8feddba..a092d75 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,9 @@ Dependencies: Python dependencies: ```pip install -r requirements.txt``` Optional: brotli + +For virtual env just type (ofc after install mpv, fzf, python3): +`./run` ### About cache folder funkwlmpv has to cache tracks before playing (default disabled "enable_persistent_cache"). Cache is persistent and you should manage it manually because the (script/program) can't clean it automatically. diff --git a/run b/run new file mode 100755 index 0000000..af616c6 --- /dev/null +++ b/run @@ -0,0 +1,12 @@ +#!/bin/bash + +if [ ! -d env_fw ]; then + python3 -m venv env_fw + . env_fw/bin/activate + pip3 install -r requirements.txt || pip install -r requirements.txt || exit 1 + ./funkwlmpv +else + . env_fw/bin/activate + ./funkwlmpv +fi +