

def find_configdir(self):
    if (self.args.get('--config') is not None):
        return path.args.get('--config')
    if ('GAFFERD_CONFIG' in os.environ):
        return os.environ.get('GAFFERD_CONFIG')
    if is_admin():
        default_paths = system_path()
    else:
        default_paths = user_path()
    for path in default_paths:
        if os.path.isdir(path):
            return path
    return default_path()

dataset/ETHPy150Open benoitc/gaffer/gaffer/gafferd/main.py Server.find_configdir/VarMisuse@28/34 `self`->`path`