From c7be1572ec9f507bf11d2dcdda6c65510c2665be Mon Sep 17 00:00:00 2001 From: Jamie Lentin Date: Sat, 20 Jan 2024 17:22:29 +0000 Subject: [PATCH] Gruntfile: Alter web2py.py to use venv #676 Update shebang at the top of web2py.py so it uses the venv by default. --- Gruntfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Gruntfile.js b/Gruntfile.js index 92070237..6376e844 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -41,6 +41,10 @@ module.exports = function (grunt) { '( [ -f applications/OZtree/private/appconfig.ini ] || { cp applications/OZtree/private/appconfig.ini.example applications/OZtree/private/appconfig.ini ; echo "****** edit private/appconfig.ini"; exit 1; } )', preferred_python3 + ' -m venv .', './bin/pip install -r applications/OZtree/requirements.txt', + // Make web2py.py use the venv + 'mv web2py.py web2py.py.o', + 'echo "#!' + venv_python + '" > web2py.py', + 'tail -n +2 web2py.py.o >> web2py.py', ].join(" && "), }, web2py_start_dev: {