fixed #2497 : setSearchPaths Bug
Merge pull request #1064 from ShengxiangChen/issue2497_setSearchPathsBug

fixed #2497 : setSearchPaths Bug