Skip to content

How to wait for virtual environment to be activated before issuing commands in a terminal? #18978

Answered by brettcannon
abingham asked this question in Q&A
Discussion options

You must be logged in to vote

We (and by that I mean @karrtikr 😁) are about to start looking into how we do terminal stuff to see if there's a better way to handle it. But I'm personally not aware of any hook from VS Code that can help in this situation based on how things are implemented.

But do you need to have PATH manipulated? Could you use -m with the selected Python interpreter to run the tool?

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
6 replies
@abingham
Comment options

@brettcannon
Comment options

@abingham
Comment options

@brettcannon
Comment options

@DonJayamanne
Comment options

Answer selected by abingham
Comment options

You must be logged in to vote
1 reply
@karrtikr
Comment options

Comment options

You must be logged in to vote
4 replies
@brettcannon
Comment options

@msarahan
Comment options

@brettcannon
Comment options

@msarahan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
5 participants