toolsutils.py
changeset 2476 1294a6bdf3bf
parent 2397 cdedc2a32b06
child 2615 1ea41b7c0836
equal deleted inserted replaced
2475:b6753521129d 2476:1294a6bdf3bf
   138     else:
   138     else:
   139         print '-> set %s permissions to 0600' % filepath
   139         print '-> set %s permissions to 0600' % filepath
   140     chmod(filepath, 0600)
   140     chmod(filepath, 0600)
   141 
   141 
   142 def read_config(config_file):
   142 def read_config(config_file):
   143     """read the application configuration from a file and return it as a
   143     """read the instance configuration from a file and return it as a
   144     dictionnary
   144     dictionnary
   145 
   145 
   146     :type config_file: str
   146     :type config_file: str
   147     :param config_file: path to the configuration file
   147     :param config_file: path to the configuration file
   148 
   148