Commit f0fff496 authored by ale's avatar ale

check for existance of configuration file.

parent e1c1725d
......@@ -5,8 +5,16 @@ import os, sys
import ConfigParser
from utils import *
cfg = ConfigParser.ConfigParser()
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.
cfg = ConfigParser.ConfigParser()
ca = cfg2dict(cfg, 'ca')
ca_base = cfg.get('global', 'root')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment