1
2
3
4
5
|
>>>
import
sys
>>>
print
sys.path
['
', '
/
usr
/
lib64
/
python26.
zip
', '
/
usr
/
lib64
/
python2.
6
', '
/
usr
/
lib64
/
python2.
6
/
plat
-
linux2
', '
/
usr
/
lib64
/
python2.
6
/
lib
-
tk
', '
/
usr
/
lib64
/
python2.
6
/
lib
-
old
', '
/
usr
/
lib64
/
python2.
6
/
lib
-
dynload
', '
/
usr
/
lib64
/
python2.
6
/
site
-
packages
', '
/
usr
/
lib64
/
python2.
6
/
site
-
packages
/
gtk
-
2.0
', '
/
usr
/
lib
/
python2.
6
/
site
-
packages']
>>> sys.path.append(
'/home/test'
)
>>>
import
mymoudle
|
本文转自 wangpengtai 51CTO博客,原文链接:http://blog.51cto.com/wangpengtai/2072676,如需转载请自行联系原作者