diff options
author | Lei Yan | 2014-02-19 12:25:09 -0600 |
---|---|---|
committer | Lei Yan | 2014-02-19 12:25:09 -0600 |
commit | 0c9940044586befb1b90524fea26c4cf4da7d6e6 (patch) | |
tree | bc17b2f1189879f5b92bf0764b4b7864a26610be /wqflask/maintenance/dataset/utilities.py | |
parent | e9a7f6c8b35f0eec909757c281e58681567ed274 (diff) | |
download | genenetwork2-0c9940044586befb1b90524fea26c4cf4da7d6e6.tar.gz |
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset/utilities.py')
-rw-r--r-- | wqflask/maintenance/dataset/utilities.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wqflask/maintenance/dataset/utilities.py b/wqflask/maintenance/dataset/utilities.py index 04ca0438..63a3e84d 100644 --- a/wqflask/maintenance/dataset/utilities.py +++ b/wqflask/maintenance/dataset/utilities.py @@ -1,5 +1,6 @@ import MySQLdb import re +import ConfigParser def get_cursor(): host = 'localhost' @@ -39,3 +40,8 @@ def overlap(dic1, dic2): values1.append(value1) values2.append(value2) return keys, values1, values2 + +def get_config(configfile): + config = ConfigParser.ConfigParser() + config.read(configfile) + return config |