Comment 3 for bug 952132

Revision history for this message
Scanferlato (jls-boost) wrote :

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

F:\canonical\bzr\bzr\bzr.py,

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\bzr.py 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\bzr.py
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\\bzr.py help init'