Browse files

Sync README.rst description with latest fixes

  • Loading branch information...
1 parent fb3f024 commit 64d8c035628449b5b031644c140f7c0d8dbc2576 @eddyp eddyp committed with eddyp Feb 26, 2013
Showing with 8 additions and 7 deletions.
  1. +8 −7 README.rst
View
15 README.rst
@@ -17,10 +17,9 @@ or possibly::
for `roaming profiles <http://bit.ly/9yl3b6>`_ but that is another story.
On Linux (and other Unices) the dir, according to the `XDG
-spec <http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_
-(and subject to some interpretation), is::
+spec <http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_, is::
- ~/.config/<appname> # note AppName was lowercased
+ ~/.local/share/<AppName>
``appdirs`` to the rescue
@@ -78,13 +77,15 @@ On Linux::
>>> appname = "SuperApp"
>>> appauthor = "Acme"
>>> user_data_dir(appname, appauthor)
- '/home/trentm/.config/superapp
+ '/home/trentm/.local/share/SuperApp
>>> site_data_dir(appname, appauthor)
- '/etc/xdg/superapp'
+ '/usr/local/share/SuperApp'
+ >>> site_data_dir(appname, appauthor, returnlist=True)
+ '/usr/local/share/SuperApp:/usr/share/SuperApp'
>>> user_cache_dir(appname, appauthor)
- '/home/trentm/.cache/superapp'
+ '/home/trentm/.cache/SuperApp'
>>> user_log_dir(appname, appauthor)
- '/home/trentm/.cache/superapp/log'
+ '/home/trentm/.cache/SuperApp/log'
``AppDirs`` for convenience

0 comments on commit 64d8c03

Please sign in to comment.