def _nt_quote_args(args):
 for i in range(len(args)):
  if (string.find(args[i], ' ') != (-1)):
   args[i] = ('"%s"' % args[i])
 return args

def _nt_quote_args ( args ) : for i in range ( len ( args ) ) : if ( string . find ( args [ i ] , ' ' ) != ( - 1 ) ) : args [ i ] = ( '"%s"' % args [ i ] ) return args
quote command-line arguments for dos/windows conventions .