[Buildbot-devel] virtualenv on windows issue

Marcus Lindblom macke at yar.nu
Sat Apr 10 17:01:08 UTC 2010


On 2010-04-10 18:44, Itamar O wrote:
> Hi,
> I might have done something wrong during installation,
> so I want to check this with the list before opening a ticket.
>
[snip]
> So I checked the content of the buildbot.bat file, which was:
>     @"%~dp0..\python" "%~dp0buildbot" %*
> But in my virtualenv, the python binary is also under Scripts, and not
> one level above,
> so changing the buildbot.bat file to:
>     @"%~dp0.\python" "%~dp0buildbot" %*         (note one less '.')
> solved the issue.
>
> Have I done something wrong?

Nop. The bat-file was written with a system installation in mind, not 
virtualenv.

Open a ticket, and we'll think of something like this, but tested and 
with all errors fixed. ;-P

==
@echo off

IF EXISTS "%~dp0..\python.exe" (
  "%~dp0..\python"  "%~dp0buildbot" %*
) ELSE IF EXISTS "%~dp0.\python.exe" (
  "%~dp0.\python"  "%~dp0buildbot" %*
) ELSE (
  echo Failed to find python.exe
  exit /b 1
)

exit /b %ERRORLEVEL%
==

Cheers,
/Marcus





More information about the devel mailing list