我在pip的帮助下安装了PRAW(https://praw.readthedocs.org/en/latest/index.html)。现在我想更改praw.ini以配置代理设置,但我无法找到它。这里(https://praw.readthedocs.org/en/latest/pages/configuration_files.html)它说praw.ini必须在这里(/home/foobar/.config/praw.ini),但那里没有文件。操作系统是Ubuntu 12.04,Python版本是2.7。
答案 0 :(得分:1)
import praw
print praw.__path__
对我来说,这给了/usr/local/lib/python2.7/dist-packages/praw
,然后我找到了praw.ini
:
$ l /usr/local/lib/python2.7/dist-packages/praw/praw.ini
-rw-rw-r-- 1 staff 2380 May 27 12:55 /usr/local/lib/python2.7/dist-packages/praw/praw.ini
答案 1 :(得分:-1)
根据评论运行:
updatebd
然后:
locate praw|grep praw.ini