Skip to content

Commit

Permalink
Gruntfile: Alter web2py.py to use venv #676
Browse files Browse the repository at this point in the history
Update shebang at the top of web2py.py so it uses the venv by default.
  • Loading branch information
lentinj committed Feb 5, 2024
1 parent 8a2246d commit c7be157
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit c7be157

Please sign in to comment.