how to import function from another python file class different directory code example
Example: import python module from another directory
import sys
# sys.path is a list of absolute path strings
sys.path.append('/path/to/application/app/folder')
import file