Skip to content

Commit

Permalink
Update README.rst to mention *_config_dir APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyp committed Mar 18, 2013
1 parent 7432611 commit 9306c24
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ This kind of thing is what the ``appdirs`` module is for. ``appdirs`` will
help you choose an appropriate:

- user data dir (``user_data_dir``)
- user donfig dir (``user_donfig_dir``)
- user cache dir (``user_cache_dir``)
- site data dir (``site_data_dir``)
- site config dir (``site_config_dir``)
- user log dir (``user_log_dir``)

and also:
Expand Down Expand Up @@ -86,6 +88,13 @@ On Linux::
'/home/trentm/.cache/SuperApp'
>>> user_log_dir(appname, appauthor)
'/home/trentm/.cache/SuperApp/log'
>>> user_config_dir(appname)
'/home/trentm/.config/SuperApp'
>>> site_config_dir(appname)
'/etc/xdg/SuperApp'
>>> os.environ['XDG_CONFIG_DIRS'] = '/etc:/usr/local/etc'
>>> site_config_dir(appname, returnlist=True)
'/etc/SuperApp:/usr/local/etc/SuperApp'


``AppDirs`` for convenience
Expand Down

0 comments on commit 9306c24

Please sign in to comment.