Ticket #322 (closed defect: duplicate)

Opened 20 months ago

Last modified 5 weeks ago

Space and environment variable in win32 command line

Reported by: MathieuA Owned by:
Priority: minor Milestone: 0.8.+
Version: 0.7.6 Keywords:
Cc:

Description

I work with a slave on Windows and Buildbot tries to execute a command using the environment variable %VS71COMNTOOLS% (Visual studio exec) which refers to something like c:/Program Files/.... in the slave.

The command in the step is like : command=['%VS71COMNTOOLS%'+'..\IDE\devenv.com','/build','Release','mySolution.sln']

I think the step fails because command contains spaces and twisted add '\"'

around the string. Then the windows cmd.exe returns the error :

'\"C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\..\IDE\devenv.com\"' is not recognized as an internal or external command, operable program or batch file.

I find a workaround by modifying the file win32.py in site-packages/twisted/python/ and add manually in the command a double quote around the path to the executable, but I think I've done something wrong in my configuration.

Do you have any idea to fix this problem ?

Change History

Changed 13 months ago by dustin

  • milestone changed from undecided to 0.7.+

dup #377

Changed 5 weeks ago by krajaratnam

  • status changed from new to closed
  • resolution set to duplicate
Note: See TracTickets for help on using tickets.