title: Argument is URL or path
body: <p>What is the standard practice in <code>Python</code> when I have a command-line application taking one argument which is</p>
  
  <p>URL to a web page</p>
  
  <p>or</p>
  
  <p>path to a HTML file somewhere on disk</p>
  
  <p>(only one)</p>
  
  <p>is sufficient the code?</p>
  
  <pre><code>if "http://" in sys.argv[1]:
    print "URL"
  else:
    print "path to file"
  </code></pre>