# 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
"cmd.exe" /k "cd C:\absolute\path\to\env & activate & cd ../../project"