From 85471acd0610a545e9bfff552bb185e100e34aad Mon Sep 17 00:00:00 2001 From: "Auke Booij (tulcod)" Date: Fri, 30 Jul 2010 23:33:04 +0200 Subject: Adding g-cran.cfg --- g_common/g_common.py | 4 +++- g_cran/g-cran.cfg | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 g_cran/g-cran.cfg 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 -- cgit v1.2.3-65-gdbad