def messages_path():
 module_path = os.path.abspath(__file__)
 return os.path.join(os.path.dirname(module_path), 'messages')

def messages_path ( ) : module_path = os . path . abspath ( __file__ ) return os . path . join ( os . path . dirname ( module_path ) , 'messages' )
determine the path to the messages directory as best possible .