summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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