[wingide-users] Popen and virtual env
Wing IDE Support
support at wingware.com
Thu Feb 13 19:34:49 EST 2014
On 2/13/14, 5:03 PM, brian downing wrote:
> In project props I have a virtual env setup:
> When I run popen it is picking up the system python:
> cmd = 'python -c "import sys;print sys.version_info" '
popen will search the path for the named executable, so the question is
whether the virtual env's bin directory is in the PATH and before other
directories that contain python.
That being said, the usual way to get the name of the interpreter used
to run the script is to use sys.executable.
More information about the wingide-users