def delayed_import():
 global _ServerSession, _PlayerDB, _ServerConfig, _ScriptDB
 if (not _ServerSession):
  (modulename, classname) = settings.SERVER_SESSION_CLASS.rsplit('.', 1)
  _ServerSession = variable_from_module(modulename, classname)
 if (not _PlayerDB):
  from evennia.players.models import PlayerDB as _PlayerDB
 if (not _ServerConfig):
  from evennia.server.models import ServerConfig as _ServerConfig
 if (not _ScriptDB):
  from evennia.scripts.models import ScriptDB as _ScriptDB
 (_ServerSession, _PlayerDB, _ServerConfig, _ScriptDB)

def delayed_import ( ) : global _ServerSession , _PlayerDB , _ServerConfig , _ScriptDB if ( not _ServerSession ) : ( modulename , classname ) = settings . SERVER_SESSION_CLASS . rsplit ( '.' , 1 ) _ServerSession = variable_from_module ( modulename , classname ) if ( not _PlayerDB ) : from evennia . players . models import PlayerDB as _PlayerDB if ( not _ServerConfig ) : from evennia . server . models import ServerConfig as _ServerConfig if ( not _ScriptDB ) : from evennia . scripts . models import ScriptDB as _ScriptDB ( _ServerSession , _PlayerDB , _ServerConfig , _ScriptDB )
helper method for delayed import of all needed entities .