title: how can you open a URL with a specified web browser in python 3
body: <p>I am creating a program in python 3 and i would like the user to open a URL with a specified web browser application.I have tried using the <code>subprocess.Popen([application, URL])</code> but it raises a <code>FileNotFoundError</code>.
  Any help is greatly appreciated.</p>
  
  <p>EDIT:
  I forgot to mention that I am using Windows 10, and here is a copy of the Error message I am getting:</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:\Users\[Name]\Desktop\AI.py", line 221, in &lt;module&gt;
  subprocess.Popen(["google-chrome", "www.google.co.uk/"])
  File "C:\Python34\lib\subprocess.py", line 859, in __init__
  restore_signals, start_new_session)
  File "C:\Python34\lib\subprocess.py", line 1112, in _execute_child
  startupinfo)
  FileNotFoundError: [WinError 2] The system cannot find the file specified
  </code></pre>
  
  <p>EDIT2:
  This is my result if i try running <code>subprocess.Popen(["start", "chrome", "www.example.com/"])</code> (and i get the same error if i leave out the <code>"start",</code> part of the array):</p>
  
  <pre><code>`Traceback (most recent call last):
    File "&lt;pyshell#1&gt;", line 1, in &lt;module&gt;
      subprocess.Popen(["start", "chrome", "http://www.google.co.uk/"])
    File "C:\Python34\lib\subprocess.py", line 859, in __init__ restore_signals, start_new_session)
    File "C:\Python34\lib\subprocess.py", line 1112, in _execute_child
  startupinfo)
  FileNotFoundError: [WinError 2] The system cannot find the file specified`
  </code></pre>