Pull line editor out of contrib and into main.

This commit is contained in:
Jonathan Piacenti 2015-03-26 16:25:18 -05:00
parent eddb5dadf5
commit 89a39a8481
4 changed files with 20 additions and 10 deletions

View file

@ -1257,3 +1257,10 @@ def m_len(target):
if inherits_from(target, basestring):
return len(ANSI_PARSER.strip_mxp(target))
return len(target)
def get_line_editor():
"""
Get the line editor for this game.
"""
return variable_from_module(*settings.LINE_EDITOR.rsplit('.', 1))