import sys sys.path.append('..') #parent directory sys.path.append('/home/model') # abs path from folderA.folderB.fileA import functionA