degal/folder.py
changeset 138 130fb8a8dbb9
parent 133 0c1c092bbc5d
child 141 9387da0dc183
equal deleted inserted replaced
137:59ffc766abd9 138:130fb8a8dbb9
    19     """
    19     """
    20 
    20 
    21     def iter_config_files (self) :
    21     def iter_config_files (self) :
    22         """
    22         """
    23             Iterate over the possible config files for this dir
    23             Iterate over the possible config files for this dir
       
    24 
       
    25             XXX: abstract this
    24         """
    26         """
    25 
    27 
    26         yield self.subfile('degal.cfg')
    28         yield self.subfile('degal.cfg')
    27         yield self.subdir('.degal').subfile('cfg')
       
    28 
    29 
    29     def __init__ (self, *args, **kwargs) :
    30     def __init__ (self, *args, **kwargs) :
    30         super(Folder, self).__init__(*args, **kwargs)
    31         super(Folder, self).__init__(*args, **kwargs)
    31 
    32 
    32         # find config
    33         # find config