How to extract filenames from cmd input in python
<p>I'm running a python program compiled on windows which receives files as input but have problems when I'm passing file names.</p>

<p>foo.py:</p>

<pre><code>def main():
  args = sys.argv[1:]
  for i in args:
    print i
</code></pre>

<p>But when I compile and call it from the command line</p>

<pre><code>\python foo.py *.html
</code></pre>

<p>It directly gives me the result of <code>*.html</code> which I hope to see a list of matching strings.</p>

<p>Can anyone hep plz:)</p>
