def load_preset(self):
if '<STR_LIT>' in self.settings.preview:<EOL><INDENT>with open(os.path.join(os.path.dirname(__file__), '<STR_LIT>')) as f:<EOL><INDENT>presets = yaml.load(f.read())<EOL><DEDENT>if self.settings.preview['<STR_LIT>'] in presets:<EOL><INDENT>self.preset = presets[self.settings.preview['<STR_LIT>']]<EOL><DEDENT>return self.preset<EOL><DEDENT>
Loads preset if it is specified in the .frigg.yml