removed the individual typeclass path prefixes from settings file, replacing it with the general TYPECLASS_PATH since typeclasses are now more likely to be grouped together anyway.
This commit is contained in:
parent
de579df367
commit
e778582dca
2 changed files with 15 additions and 7 deletions
|
|
@ -618,6 +618,17 @@ def error_check_python_modules():
|
||||||
if hasattr(settings, "CHARACTER_DEFAULT_HOME"):
|
if hasattr(settings, "CHARACTER_DEFAULT_HOME"):
|
||||||
raise DeprecationWarning("settings.CHARACTER_DEFAULT_HOME should be renamed to DEFAULT_HOME. " \
|
raise DeprecationWarning("settings.CHARACTER_DEFAULT_HOME should be renamed to DEFAULT_HOME. " \
|
||||||
"See also settings.START_LOCATION (see evennia/settings_default.py).")
|
"See also settings.START_LOCATION (see evennia/settings_default.py).")
|
||||||
|
deprstring = "settings.%s is now merged into settings.TYPECLASS_PATHS. Update your settings file."
|
||||||
|
if hasattr(settings, "OBJECT_TYPECLASS_PATHS"):
|
||||||
|
raise DeprecationWarning(deprstring % "OBJECT_TYPECLASS_PATHS")
|
||||||
|
if hasattr(settings, "SCRIPT_TYPECLASS_PATHS"):
|
||||||
|
raise DeprecationWarning(deprstring % "SCRIPT_TYPECLASS_PATHS")
|
||||||
|
if hasattr(settings, "PLAYER_TYPECLASS_PATHS"):
|
||||||
|
raise DeprecationWarning(deprstring % "PLAYER_TYPECLASS_PATHS")
|
||||||
|
if hasattr(settings, "CHANNEL_TYPECLASS_PATHS"):
|
||||||
|
raise DeprecationWarning(deprstring % "CHANNEL_TYPECLASS_PATHS")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
from evennia.commands import cmdsethandler
|
from evennia.commands import cmdsethandler
|
||||||
if not cmdsethandler.import_cmdset(settings.CMDSET_UNLOGGEDIN, None): print "Warning: CMDSET_UNLOGGED failed to load!"
|
if not cmdsethandler.import_cmdset(settings.CMDSET_UNLOGGEDIN, None): print "Warning: CMDSET_UNLOGGED failed to load!"
|
||||||
|
|
|
||||||
|
|
@ -284,13 +284,10 @@ CMDSET_PATHS = ["commands"]
|
||||||
# Server-side session class used.
|
# Server-side session class used.
|
||||||
SERVER_SESSION_CLASS = "evennia.server.serversession.ServerSession"
|
SERVER_SESSION_CLASS = "evennia.server.serversession.ServerSession"
|
||||||
|
|
||||||
# Base paths for typeclassed object classes. These paths must be
|
# These are paths that will be prefixed to the paths given if the
|
||||||
# defined relatively to Evennia's root directory. They will be searched in
|
# immediately entered path fail to find a typeclass. It allows for
|
||||||
# order to find relative typeclass paths.
|
# shorter input strings. They must either base off the game directory
|
||||||
OBJECT_TYPECLASS_PATHS = ["typeclasses", "evennia.contrib", "evennia.contrib.tutorial_examples"]
|
# or start from the evennia library.
|
||||||
SCRIPT_TYPECLASS_PATHS = ["typeclasses", "evennia.contrib", "evennia.contrib.tutorial_examples"]
|
|
||||||
PLAYER_TYPECLASS_PATHS = ["typeclasses", "evennia.contrib", "evennia.contrib.tutorial_examples"]
|
|
||||||
CHANNEL_TYPECLASS_PATHS = ["typeclasses", "evennia.contrib", "evennia.contrib.tutorial_examples"]
|
|
||||||
TYPECLASS_PATHS = ["typeclasses", "evennia.contrib", "evennia.contrib.tutorial_examples"]
|
TYPECLASS_PATHS = ["typeclasses", "evennia.contrib", "evennia.contrib.tutorial_examples"]
|
||||||
|
|
||||||
# Typeclass for player objects (linked to a character) (fallback)
|
# Typeclass for player objects (linked to a character) (fallback)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue