I am very new to Linux shell.开发者_如何转开发 Does anyone know why I am getting the following error?
[root@localhost src]# sys.path.append('/usr/local/folder1/');
bash: syntax error near unexpected token `'/usr/local/folder1/''
Because that is not correct bash syntax. What you should write is:
PATH=${PATH}:/usr/local/folder1
Appending to sys.path
import sys
sys.path # displays all the paths included in sys.path
sys.path.append("/home/rahul/documents")
精彩评论