]> git.donarmstrong.com Git - neurodebian.git/blob - tools/nd_querycfg
9e73f558aaa01b83bf9aeeada43fb032386149d5
[neurodebian.git] / tools / nd_querycfg
1 #!/usr/bin/python
2 #
3 # Dead simple script to query the NeuroDebian dev config.
4 #
5 import sys
6 from ConfigParser import SafeConfigParser
7
8 # XXX add check if it is there at all
9 # XXX support more locations
10 cfg_path="/etc/neurodebian/neurodebian.cfg"
11
12 cfg = SafeConfigParser()
13 cfg.read(cfg_path)
14 print cfg.get(sys.argv[1], sys.argv[2])