Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Opens the configuration file.

@param fname: Pathname to the configuration file.
@type fname: C{str}

@raise InvalidConfFile: In case the passed file is not a valid one.

src/h/a/halberd-0.2.4/Halberd/ScanTask.py   halberd(Download)
 
        try:
            reader.open(self.conf_file)
        except IOError:
            if self.conf_file == default_conf_file:
                try:
                    os.mkdir(default_conf_dir)
                    reader.writeDefault(default_conf_file)
                    reader.open(default_conf_file)

src/h/a/halberd-HEAD/Halberd/ScanTask.py   halberd(Download)
 
        try:
            reader.open(self.conf_file)
        except IOError:
            if self.conf_file == default_conf_file:
                try:
                    os.mkdir(default_conf_dir)
                    reader.writeDefault(default_conf_file)
                    reader.open(default_conf_file)