| # This Source Code Form is subject to the terms of the Mozilla Public |
| # License, v. 2.0. If a copy of the MPL was not distributed with this |
| # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| from StringIO import StringIO |
| (file, section, key) = sys.argv[1:] |
| print "Usage: printconfigsetting.py <file> <section> <setting>" |
| content = re.sub('^\s*;', '#', fh.read(), flags=re.M) |
| c = configobj.ConfigObj(StringIO(content)) |
| print >>sys.stderr, "Section [%s] not found." % section |
| print >>sys.stderr, "Key %s not found." % key |