title: Using the rubypython gem in ruby on rails, how do you call a python script from the lib folder?
body: <p>I know ruby pretty well, but I've never used python before.</p>
  
  <p>There's this great <a href="https://github.com/99designs/colorific" rel="nofollow">python script called colorific</a>.
  I've checked this script out in the lib folder in my rails app and installed the rubypython gem.</p>
  
  <p>I was wondering how I now import this sciprt into the app, so far I've got this:</p>
  
  <pre><code>RubyPython.start # start the Python interpreter
  test = RubyPython.import("#{Rails.root}/lib/colorific/setup.py")
  RubyPython.stop # stop the Python interpreter
  </code></pre>
  
  <p>However it's throwing the error…</p>
  
  <pre><code>RubyPython::PythonError: ImportError: Import by filename is not supported.
  </code></pre>
  
  <p>I was wondering how do I import this script and start using it's methods?</p>