title: python: how to properly pass arguments to executable via commandline
body: <p>i'm trying to write a small python script, which will allow me to pass parameters to a command line dialog, in order to run a setup file.
  i want to be able to pass parameters to the executable file, for example: "setup.exe --uninstall --delete-profile --force-uninstall"</p>
  
  <p>i've tried to use the "os.system" module, as well as the "subprocess.call" module, but in both cases, the script doesn't work.<br>
  i'm not getting an error. instead, the script just ends, but the setup and\or the application files and folders are not deleted.<br>
  when i'm running the same commands manually (via the commandline), the application and relevant files are deleted.</p>
  
  <p>here's the line of code:</p>
  
  <pre><code>subprocess.call('setup.exe --uninstall --delete-profile --force-uninstall', shell=True)
  </code></pre>
  
  <p>i think the problem is due to permissions (though i'm running the script via IDLE with admin rights) or with the "--" symbols, which separates the arguments (unfortunately, that's the format used by the setup file).</p>
  
  <p>any help would be greatly appreciated.</p>