开发者

bash shell sys.path.append problem

开发者 https://www.devze.com 2023-02-05 17:23 出处:网络
I am very new to Linux shell.开发者_如何转开发 Does anyone know why I am getting the following error?

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")

0

精彩评论

暂无评论...
验证码 换一张
取 消