python-twitter
python-twitter copied to clipboard
respect XDG conventions for configuration file
The base XDG directory specification says that config file should be in $XDG_CONFIG_HOME or, failing that, in ~/.config. the example client should also follow that standard and look for the config file in ~/.config/tweetrc instead of ~/.tweetrc.
See also this post for a rationale.
I’m not sure that we use a config file or would be writing to one, but maybe in some old code somewhere. Could you point me to where this would apply?
Jeremy
On Feb 6, 2019, at 11:20 AM, anarcat [email protected] wrote:
The base XDG directory specification says that config file should be in $XDG_CONFIG_HOME or, failing that, in ~/.config. the example client should also follow that standard and look for the config file in ~/.config/tweetrc instead of ~/.tweetrc.
See also this post for a rationale.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
The Debian package for python-twitter ships /usr/bin/tweet that I use frequently. The config file is defined in:
https://github.com/bear/python-twitter/blob/4c8ef75305dd612008be48e97e24da16bb5be046/examples/tweet.py#L100-L103