upgrade to CAM v2.0
[stack/cam.git] / lib / cfg.py
diff --git a/lib/cfg.py b/lib/cfg.py
deleted file mode 100644 (file)
index 3075a2e..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-
-__all__ = [ 'cfg', 'ca_base', 'ca', 'config_file_path' ]
-
-import os, sys
-import ConfigParser
-from utils import *
-
-config_file_path = os.path.join(os.path.dirname(sys.argv[0]),'config')
-if not os.path.exists(config_file_path):
-    print '''
-The configuration file '%s' does not exist.
-Please create this file and fill in the configuration data
-of your certificates so that 'cam' can operate.
-''' % config_file_path
-    sys.exit(1)
-
-cfg = ConfigParser.ConfigParser()
-cfg.read(config_file_path)
-ca = cfg2dict(cfg, 'ca')
-ca_base = cfg.get('global', 'root')