[kupfer] config: Allow custom package name with get_data_dirs
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] config: Allow custom package name with get_data_dirs
- Date: Tue, 25 Aug 2009 13:21:48 +0000 (UTC)
commit 5191dd57e32300bea44b615079437369ed8fc609
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Aug 25 00:37:56 2009 +0200
config: Allow custom package name with get_data_dirs
kupfer/config.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/config.py b/kupfer/config.py
index b44e5ec..a72e20b 100644
--- a/kupfer/config.py
+++ b/kupfer/config.py
@@ -71,11 +71,11 @@ def get_data_home():
"""
return base.save_data_path(PACKAGE_NAME)
-def get_data_dirs(name=""):
+def get_data_dirs(name="", package=PACKAGE_NAME):
"""
Iterate over all data dirs of @name that exist
"""
- return base.load_data_paths(os.path.join(PACKAGE_NAME, name))
+ return base.load_data_paths(os.path.join(package, name))
def get_config_file(filename):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]