1# test.py
2import sys
3# append current python modules' folder path
4# example: need to import module.py present in '/path/to/python/module/not/in/syspath'
5sys.path.append('/path/to/python/module/not/in/syspath')
6
7import module
1# some_file.py
2import sys
3# insert at 1, 0 is the script path (or '' in REPL)
4sys.path.insert(1, '/path/to/application/app/folder')
5
6import file
7