def get_user_settings(self):
        if not self.settings_dir:
            return

        file_path = os.path.join(self.settings_dir, self.settings_file)

        # Create the file, if it doesn't exist
        if not os.path.exists(file_path):
            this_path = os.path.dirname(os.path.realpath(__file__))
            default_file = os.path.join(this_path, 'settings.yaml')
            shutil.copy2(default_file, file_path)

        # Read file
        self.user_settings = yaml.load(open(file_path).read())
        return self.user_settings
Load the settings.yaml file into memory.
dataset/ETHPy150Open jgillick/LendingClubAutoInvestor/lcinvestor/settings/__init__.py/Settings.get_user_settings