title: Using subprocess in Python, I get different results when in Python cmd and Python IDLE
body: <p>I hope the title makes sense. To give specifics:</p>
  
  <p>I am using csvtotable (<a href="https://github.com/vividvilla/csvtotable" rel="nofollow noreferrer">https://github.com/vividvilla/csvtotable</a>) to generate HTML tables from CSVs. I have installed via pip and am able to run a command line command:</p>
  
  <pre><code>csvtotable test1743.csv test1743.html
  </code></pre>
  
  <p>to generate a HTML page. All good so far.</p>
  
  <p>I wanted to do this from within a Python script I had already written so I heard that subprocess was the way to do this. I looked up how to do it and understood that it can be done using the following:</p>
  
  <pre><code>subprocess.run('csvtotable test1743.csv test1743.html',shell=True)
  </code></pre>
  
  <p>So I tested this via the command line first by doing</p>
  
  <pre><code>python
  </code></pre>
  
  <p>from the command line and then running</p>
  
  <pre><code>import subprocess
  subprocess.run('csvtotable test1743.csv test1743.html',shell=True)
  </code></pre>
  
  <p>Success! It worked. Fantastic.</p>
  
  <p>However, when I try to do this from IDLE, it just returns a 1.  I have checked the directory thinking that maybe the csv was missing from there, but it still doesn't work.</p>
  
  <p>Am I misunderstanding how subprocess works?</p>