当前环境
$ pwd
/Users/fangjian/zhishi-public/20150825/python
$ tree
.
└── fangjian
├── __init__.py
└── hello.py
在site-packages下新建一个pth文件,内容是package目录的上层目录
$cat /Library/Python/2.7/site-packages/MyModule.pth
/Users/fangjian/zhishi-public/20150825/python
测试一下
$ python
>>> from fangjian import hello
>>> hello.hello()
hello from fangjian.hello