[kupfer] config: get_config_filename support any package
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] config: get_config_filename support any package
- Date: Sat, 31 Oct 2009 16:02:45 +0000 (UTC)
commit 95e147640a7cd2ebbfdaa03d8faf350f2ad1efc1
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sat Oct 31 16:45:20 2009 +0100
config: get_config_filename support any package
kupfer/config.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/kupfer/config.py b/kupfer/config.py
index 5607c4f..aa48bc5 100644
--- a/kupfer/config.py
+++ b/kupfer/config.py
@@ -84,12 +84,12 @@ def get_data_dirs(name="", package=PACKAGE_NAME):
"""
return base.load_data_paths(os.path.join(package, name))
-def get_config_file(filename):
+def get_config_file(filename, package=PACKAGE_NAME):
"""
- Return path to @filename if it exists
- anywhere in the config paths, else return None
+ Return path to @package/@filename if it exists anywhere in the config
+ paths, else return None
"""
- return base.load_first_config(PACKAGE_NAME, filename)
+ return base.load_first_config(package, filename)
def get_config_files(filename):
"""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]