Skip to main content

Activating a virtual environnement inside a .bat stops it from executing next commands

My .bat file looks like this:

cd somewhere
virtualenv/Scripts/activate
cd somewhere_else
set FLASK_APP=flask_app.py
python -m flask
flask run

However the .bat stops after the second line (virtualenv/Scripts/activate).

How can I make it keep executing the following lines ?



source https://stackoverflow.com/questions/71915985/activating-a-virtual-environnement-inside-a-bat-stops-it-from-executing-next-co

Comments