965e4a100e9fd962e8da444392553ae4da1ee66f
[stack/cam.git] / lib / cfg.py
1
2 __all__ = [ 'cfg', 'ca_base', 'ca', 'config_file_path' ]
3
4 import os, sys
5 import ConfigParser
6 from utils import *
7
8 cfg = ConfigParser.ConfigParser()
9 config_file_path = os.path.join(os.path.dirname(sys.argv[0]),'config')
10 cfg.read(config_file_path)
11 ca = cfg2dict(cfg, 'ca')
12 ca_base = cfg.get('global', 'root')