import sys
sys.path.append('path/to/your/file')
import your.lib
This will import the contents of your file from the newly appended directory. Appending new directories to the Python Path in this way only lasts while the script is running, it is not permanent.