diff options
author | wking <wking@thialfi> | 2010-06-22 11:30:26 -0400 |
---|---|---|
committer | wking <wking@thialfi> | 2010-06-22 11:30:26 -0400 |
commit | 401152d6eec5167043dedde60c0a64d0affbd120 (patch) | |
tree | b0539d31267c123032685de7b5d2da346e18c94e /libbe/storage/util | |
parent | a4ec8a0c99b2a918fa8a5ae1cab36652d2d9c83e (diff) | |
download | bugseverywhere-401152d6eec5167043dedde60c0a64d0affbd120.tar.gz |
Use os.path.join in libbe.storage.util.config.path.
Versus previous hardcoded "~/.bugs_everywhere".
Also improve docstrings for
* libbe.storage.util.config.path
* libbe.ui.util.user.get_user_id
Diffstat (limited to 'libbe/storage/util')
-rw-r--r-- | libbe/storage/util/config.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libbe/storage/util/config.py b/libbe/storage/util/config.py index 724d2d3..7d59712 100644 --- a/libbe/storage/util/config.py +++ b/libbe/storage/util/config.py @@ -37,8 +37,10 @@ Initialized with :func:`libbe.util.encoding.get_filesystem_encoding`. def path(): """Return the path to the per-user config file. + + Defaults to :file:`~/.bugs_everywhere`. """ - return os.path.expanduser("~/.bugs_everywhere") + return os.path.expanduser(os.path.join('~','.bugs_everywhere')) def set_val(name, value, section="DEFAULT", encoding=None): """Set a value in the per-user config file. |