A
A
AlexRAV2017-01-22 20:31:40
Python
AlexRAV, 2017-01-22 20:31:40

How to run script when opening terminal in pycharm?

At the moment, to run the project from the terminal in pycharm, I need to:
Go to the virtual environment folder
There go to the Scripts folder
Run activate.exe
Exit the environment folder
Go to the project folder
Set environment variables
Start the server.
It is clear that these are routine, absolutely identical commands that need to be executed for each new tab of the terminal, which takes time and is desponding. How can I configure pycharm to run these commands automatically. Is there a way to customize this for a specific project?
OS: Windows 7

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexRAV, 2017-01-23
@AlexRAV

In general, the following happened:
Go to Settings => Terminal => Shell path and write there
When you open the terminal, we get a ready-made console with a running environment and the folder we need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question