title: Python / ImportError: Import by filename is not supported
body: <p>I'm trying to import a python file to my application which is written in python.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>import os
  from os.path import basename
  
  class specificClass:
      def dothing(self,path):
            runcommand = __import__("/root/"+ os.path.splitext(os.path.basename(path))[0]+ "/" + os.path.splitext(os.path.basename(path))[0] +"/sa/update.py")
            runcommand.main()
  </code></pre>
  
  <p>When I run it, it gives me the following error:</p>
  
  <pre><code>ImportError: Import by filename is not supported.
  </code></pre>