From bb45a0235b1770c2018e0e3d30237a301749cc93 Mon Sep 17 00:00:00 2001 From: Wolfgang Goetz Date: Mon, 7 Jul 2025 20:52:11 +0200 Subject: [PATCH] use virtualenv --- deltae | 2 +- run.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deltae b/deltae index 0b7a4b32..78aae2fd 100755 --- a/deltae +++ b/deltae @@ -1,4 +1,4 @@ -#!/usr/bin/python3 +#!/usr/bin/env python3 # Requires: # python3-scipy >= 1.1.0 diff --git a/run.sh b/run.sh index d3470603..f7c5fc4f 100755 --- a/run.sh +++ b/run.sh @@ -20,6 +20,14 @@ CDPATH= +[ -f .venv/bin/activate ] || { + python3 -m venv .venv + source .venv/bin/activate + pip install numpy colour colour-science packaging matplotlib + deactivate +} +source .venv/bin/activate + # If DARKTABLE_CLI not set and darktable-cli not found in the PATH but found # in standard installation /opt/darktable, use it. if [[ -z $DARKTABLE_CLI ]] &&