Comment 3 for bug 952132

Scanferlato (jls-boost) wrote :

Thanks. The workaround works with minor change. Assuming bazaar script is located at


and needs to run with arguments "help init", the recipe is as follows:

create a link to pythonwin.exe
edit its properties and set:

destination: C:\Python27\Lib\site-packages\pythonwin\Pythonwin.exe F:\canonical\bzr\bzr\ help init
run from: F:\canonical\bzr\bzr

After Pythonwin starts, in the "Run Script" dialog box set the following:

Script file --> F:\canonical\bzr\bzr\
Arguments --> help init
Debugging --> Step-through in the debugger

Finally, click OK to start debugging (see attached picture)

Now the value assigned to variable command_line is:

u'"C:\\Python27\\Lib\\site-packages\\pythonwin\\Pythonwin.exe" F:\\canonical\\bzr\\bzr\\ help init'