How to run a script when you open a terminal in pycharm?

At the moment to run the project from terminal in pycharm I need:
Go to the folder of your virtual environment
Where to go in the Scripts folder
Start activate.exe
To exit the folder environment
Go to the project folder
Set environment variables
To start the server.
It is clear that this is a routine, are identical to the commands that you want run for each new terminal tab, that takes time and catches despondency. How to configure pycharm so that it automatically executes these commands. Maybe you can configure it for a specific project?
OS: Windows 7
August 23rd 19 at 10:56
1 answer
August 23rd 19 at 10:58
Solution
In General we have the following:
Go to Settings => Terminal => Shell path and write there
"cmd.exe" /k "cd C:\absolute\path\to\env & activate & cd ../../project"

When you open a terminal, get a ready-made console running environment and the desired folder.

Find more questions by tags PyCharmPython