title: Copying the contents of a variable to the clipboard
body: <p>I am trying to copy the contents of a variable to the clipboard automatically within a python script. So, a variable is created that holds a string, and I'd like to copy that string to the clipboard.</p>
  
  <p>Is there a way to do this with Pyclips or </p>
  
  <pre><code>os.system("echo '' | pbcopy")
  </code></pre>
  
  <p>I've tried passing the variable where the string should go, but that doesn't work which makes sense to me.</p>