title: win32print and multiple printers
body: <p>I should print a local pdf file, if printer_name is defined (a normal string) the program should send the document to a specific printer otherwise it should use the default printer.</p>
  
  <p>This code works but use the default printer anyway!</p>
  
  <pre><code>global printer_name
  if printer_name:
      print "printer",nome_stampante
  else:
      nome_stampante = win32print.GetDefaultPrinter()
      print "default printer"
  
  out = '/d:"%s"' % nome_stampante
  
  win32api.ShellExecute (
      0,
      "print",
      filename,
      out,
      ".",
      0
  )
  </code></pre>
  
  <p>Where is the mistake?</p>
  
  <p>many thanks</p>