By Default, Python searches in the project directory and hence the files from other directories cannot be imported as we do for the files available locally in the project folder.
But to accomplish that we might want to amend the system path which can be done in the following way.
import syssys.path.insert(1, '/path/to/your/filefolder/')#also sys.path.append(0,/'path/to/your/filefolder/[file])import [your file]
Hope this can help