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 ]] &&