title: Read argument with spaces in python script from a shell script
body: <p>How do I read an argument with spaces when running a python script?</p>
  
  <p><strong>UPDATE</strong>:</p>
  
  <p>Looks like my problem is that I'm calling the python script through a shell script:</p>
  
  <p>This works:</p>
  
  <pre><code>&gt; python script.py firstParam file\ with\ spaces.txt
  # or
  &gt; python script.py firstParam "file with spaces.txt"
  
  # script.py
  import sys
  print sys.argv
  </code></pre>
  
  <p>But, not when I run it through a script:</p>
  
  <p>myscript.sh:</p>
  
  <pre><code>#!/bin/sh
  python $@
  </code></pre>
  
  <p>Prints: <strong>['firstParam', 'file', 'with', 'spaces.txt']</strong></p>
  
  <p>But what I want is:
  <strong>['firstParam', 'file with spaces.txt']</strong></p>