<s> from __future__ import absolute_import , unicode_literals <EOL> import logging <EOL> import os <EOL> import mopidy <EOL> from mopidy import config , ext <EOL> logger = logging . getLogger ( __name__ ) <EOL> class Extension ( ext . Extension ) : <EOL> dist_name = '<STR_LIT>' <EOL> ext_name = '<STR_LIT>' <EOL> version = mopidy . __version__ <EOL> def get_default_config ( self ) : <EOL> conf_file = os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) <EOL> return config . read ( conf_file ) <EOL> def get_config_schema ( self ) : <EOL> schema = super ( Extension , self ) . get_config_schema ( ) <EOL> schema [ '<STR_LIT>' ] = config . Path ( optional = True ) <EOL> schema [ '<STR_LIT>' ] = config . String ( ) <EOL> schema [ '<STR_LIT>' ] = config . String ( choices = [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> schema [ '<STR_LIT>' ] = config . Path ( optional = True ) <EOL> return schema <EOL> def setup ( self , registry ) : <EOL> from . backend import M3UBackend <EOL> registry . add ( '<STR_LIT>' , M3UBackend ) </s>
