<s> import os <EOL> from oslo_config import cfg <EOL> from ironic . common . i18n import _ <EOL> path_opts = [ <EOL> cfg . StrOpt ( '<STR_LIT>' , <EOL> default = os . path . abspath ( os . path . join ( os . path . dirname ( __file__ ) , <EOL> '<STR_LIT>' ) ) , <EOL> help = _ ( '<STR_LIT>' <EOL> '<STR_LIT>' ) ) , <EOL> cfg . StrOpt ( '<STR_LIT>' , <EOL> default = '<STR_LIT>' , <EOL> help = _ ( '<STR_LIT>' ) ) , <EOL> cfg . StrOpt ( '<STR_LIT>' , <EOL> default = '<STR_LIT>' , <EOL> help = _ ( "<STR_LIT>" ) ) , <EOL> ] <EOL> CONF = cfg . CONF <EOL> CONF . register_opts ( path_opts ) <EOL> def basedir_def ( * args ) : <EOL> """<STR_LIT>""" <EOL> return os . path . join ( '<STR_LIT>' , * args ) <EOL> def bindir_def ( * args ) : <EOL> """<STR_LIT>""" <EOL> return os . path . join ( '<STR_LIT>' , * args ) <EOL> def state_path_def ( * args ) : <EOL> """<STR_LIT>""" <EOL> return os . path . join ( '<STR_LIT>' , * args ) <EOL> def basedir_rel ( * args ) : <EOL> """<STR_LIT>""" <EOL> return os . path . join ( CONF . pybasedir , * args ) <EOL> def bindir_rel ( * args ) : <EOL> """<STR_LIT>""" <EOL> return os . path . join ( CONF . bindir , * args ) <EOL> def state_path_rel ( * args ) : <EOL> """<STR_LIT>""" <EOL> return os . path . join ( CONF . state_path , * args ) </s>
