Refactoring & install with pyproject.toml #1
@@ -7,12 +7,13 @@ class Conf(object):
 | 
			
		||||
    _cfgfiles = []
 | 
			
		||||
    debug = None
 | 
			
		||||
 | 
			
		||||
    def __init__(self, filename=None, debug=None):
 | 
			
		||||
    def __init__(self, filename=None, debug=None, force_filename=False):
 | 
			
		||||
        if debug:
 | 
			
		||||
            self.set_debug(debug)
 | 
			
		||||
        filenames = []
 | 
			
		||||
        if filename:
 | 
			
		||||
            filenames.append(filename)
 | 
			
		||||
        if not force_filename:
 | 
			
		||||
            filenames.append(f'{os.environ.get("HOME")}/etc/userconfig2.conf')
 | 
			
		||||
        ret = self.set_filenames(filenames)
 | 
			
		||||
        if not ret:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user