First time here? Check out the FAQ!
1

Virtualenv active indicator

Unlike when activating venv via CMD, I can't tell whether the venv is active when opening a Wing project. While I can check to see that the path to the bat is in the project preferences section, there is no guarantee the right path was entered.

anonymous user
Anonymous
asked 2024-10-16 03:58:37 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

If you set Python Executable in Project Properties (from the Project menu) to the Python in the venv then the env will be activated for all debugged or executed code and in the Python Shell tool. You can either use the Activated Env option to set the full path to the 'activate' script for the env or use the Command Line option to set the full path to the python or python.exe in the env.

You can verify that it's activated by printing the value of sys.executable in Python (after 'import sys'). It should be a path to the python executable in the env.

Wingware Support's avatar
4.2k
Wingware Support
answered 2024-10-16 17:09:16 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer