setup_data_locker.py
def load_settings(settings):
    """
    Loads settings from a file called `setup_data_locker.settings` located in
    the same directory as the external method
    """
    # find the directory where the external method lives
    for root, dirs, files in os.walk('/'):
        if 'setup_data_locker.py' in files:
            path = root
            break
    # read the settings
    try:
        with open(os.path.join(path, 'setup_data_locker.settings')) as settings_file:
            for line in settings_file:
                if '=' in line:
                    (setting, value) = line.split('=')
                    if setting.strip().lower() in settings.keys():
                        value = value.strip()
                        if value[0] in ('"', "'"):
                            value = value[1:]
                        if value[-1] in ('"', "'"):
                            value = value[:-1]
                        settings[setting.strip().lower()] = value
        settings_file.close()
    except:
        raise
    return settings

    Loads settings from a file called `setup_data_locker.settings` located in
    the same directory as the external method
    
Loads settings from a file called `setup_data_locker.settings` located in
the same directory as the external method
Loads settings from a file called ` setup_data_locker . settings ` located in the same directory as the external method
def load_settings(settings):
    for root, dirs, files in os.walk('/'):
        if 'setup_data_locker.py' in files:
            path = root
            break
    try:
        with open(os.path.join(path, 'setup_data_locker.settings')) as settings_file:
            for line in settings_file:
                if '=' in line:
                    (setting, value) = line.split('=')
                    if setting.strip().lower() in settings.keys():
                        value = value.strip()
                        if value[0] in ('"', "'"):
                            value = value[1:]
                        if value[-1] in ('"', "'"):
                            value = value[:-1]
                        settings[setting.strip().lower()] = value
        settings_file.close()
    except:
        raise
    return settings
def load_settings ( settings ) : for root , dirs , files in os . walk ( '/' ) : if 'setup_data_locker.py' in files : path = root break try : with open ( os . path . join ( path , 'setup_data_locker.settings' ) ) as settings_file : for line in settings_file : if '=' in line : ( setting , value ) = line . split ( '=' ) if setting . strip ( ) . lower ( ) in settings . keys ( ) : value = value . strip ( ) if value [ 0 ] in ( '"' , "'" ) : value = value [ 1 : ] if value [ - 1 ] in ( '"' , "'" ) : value = value [ : - 1 ] settings [ setting . strip ( ) . lower ( ) ] = value settings_file . close ( ) except : raise return settings
Loads settings from a file called `setup_data_locker.settings` located in
the same directory as the external method
Loads settings from a file called ` setup_data_locker . settings ` located in the same directory as the external method
"""
    Loads settings from a file called `setup_data_locker.settings` located in
    the same directory as the external method
    """ # find the directory where the external method lives # read the settings
settings