title: Python: syntax error with import
body: <p>I have a python script technically named <code>/home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_BMP085/Adafruit_BMP085_example.py</code></p>
  
  <p>The first line of this script is</p>
  
  <pre><code>from Adafruit_BMP085 import BMP085
  </code></pre>
  
  <p>Also located in this directory is a python file named Adafruit_BMP085 that has a function BMP085.</p>
  
  <p>I want to create a python script in <code>/home/pi</code> that imports the same BMP085.</p>
  
  <p>I've tried: </p>
  
  <pre><code>from /home/pi/Adafruit-Raspberry-Pi-Python-Code/Adafruit_BMP085/Adafruit_BMP085 import BMP085
  </code></pre>
  
  <p>But this just gives me a syntax error:</p>
  
  <pre><code>SyntaxError: invalid syntax
  </code></pre>
  
  <p>I've tried various syntax combinations of this same method, but cannot find one that works.</p>