title: Execute script from Python code
body: <p>I generated a dot file using Python. </p>
  
  <p>Each time the file is generated, I need to run a script in the Terminal to convert it to a pdf file or an image.</p>
  
  <p>This is the script:</p>
  
  <pre><code>dot -Tpdf somefile.dot -o somefile.pdf
  </code></pre>
  
  <p>I was wondering if it is possible to execute this script in the current folder, from within my Python code.</p>