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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
anonymous user
Anonymous
asked Oct 16

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Wingware Support's avatar
4.3k
Wingware Support
answered Oct 16
link

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)