Start a virtualenv with file . bat

Asked

Viewed 708 times

0

I got this . bat

cd C:\Users\SERVIDOR-ARQUIVOS\Documents\workspace\email\.venv\Scripts
activate.bat
cd C:\Users\SERVIDOR-ARQUIVOS\Documents\workspace\email\src
python manage.py (comando personalizado)

It goes to the folder but closes when running the activate.bat, wanted to put this script to run once a day.

If anyone knows how to help me I’m grateful

  • do not understand the problem, it does not execute the second . bat or run and this bat does close? what is the content of the activate.bat?

  • The prompt closes on the second line when it tries to run 'Activate.bat'. If I open a prompt normally and go up that path and run it works normal

  • then you will need to run using the call nome.bat, so that the process is not interrupted

1 answer

2


To run another . bat inside your file, you need to call it using

call activate.bat

assuming they’re in the same folder

if no call is used it interrupts the current process to run the new.

  • I just tested and it worked. Thank you my friend !

Browser other questions tagged

You are not signed in. Login or sign up in order to post.