summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAuke Booij (tulcod) <auke@tulcod.com>2010-07-30 23:33:04 +0200
committerAuke Booij (tulcod) <auke@tulcod.com>2010-07-31 15:09:45 +0200
commit85471acd0610a545e9bfff552bb185e100e34aad (patch)
tree182cd856d9a0da7231fe86e8d94bdca55e65da2c
parentFixes (diff)
downloadg-cran-85471acd0610a545e9bfff552bb185e100e34aad.tar.gz
g-cran-85471acd0610a545e9bfff552bb185e100e34aad.tar.bz2
g-cran-85471acd0610a545e9bfff552bb185e100e34aad.zip
Adding g-cran.cfg
-rw-r--r--g_common/g_common.py4
-rw-r--r--g_cran/g-cran.cfg1
2 files changed, 4 insertions, 1 deletions
diff --git a/g_common/g_common.py b/g_common/g_common.py
index e29a133..02542a6 100644
--- a/g_common/g_common.py
+++ b/g_common/g_common.py
@@ -14,7 +14,9 @@ def list_configured_drivers():
#read key=value file to dict
def read_config(conf_file,defaults={}):
- return configparser.ConfigParser(conf_file,defaults).items('DEFAULTS')
+ conf=ConfigParser.ConfigParser(defaults)
+ conf.read(conf_file)
+ return conf.items('DEFAULTS')
#returns dict of key=value config file
def read_driver_config(driver_name):
diff --git a/g_cran/g-cran.cfg b/g_cran/g-cran.cfg
new file mode 100644
index 0000000..31b90d6
--- /dev/null
+++ b/g_cran/g-cran.cfg
@@ -0,0 +1 @@
+exec=/usr/bin/g-cran