Hi,
I'd like to use PyScripter on a Windows 7 installation with virtualenv.
I tried to follow the hint given in this thread:
I set a batch file to start my Pyscripter project file like this:
CALL C:\Python27\my4x\Scripts\activate.bat
SET PYTHONHOME=%VIRTUAL_ENV%
START my4x.psproj
But once PyScripter is started, when Running a script, it complains:
"Error in creating the remote interpreter: system Error. code: 2. The system cannot find the specified file"
It then falls back to the Internal Pythone engine which runs the script fine.
but I'd like to use teh remote engine, as recommended.
so what is wrong?
Going over "External Run" with Application=$[PythonExe-Short] gives the same kind of error.
(System Error. Code: 2. The system cannot find the file specified.)
Here, the output says:
Command line: C:\Python27\my4x\python.exe D:\Projects\my4x\test\TEST-P~3.PY
Working directory: D:\Projects\my4x\test
Timeout: 0 ms
Which probably hints towards the cause:
The virutalenv Python executable is not
C:\Python27\my4x\python.exe
but rather
C:\Python27\my4x\Scripts\python.exe
How do i tell this to PyScripter?
Note that i prefer not to put any absolute, machine dependent paths in my project file, since it is being used by different porgrammers on different machines.
The question is basically how does PyScripter construct the path for the remote Python executable? And how can this be made to play nicely with virtualenv?
regards,
Lars R.