mirror of
https://github.com/evennia/evennia.git
synced 2026-03-18 05:46:31 +01:00
Added the ability to give multiple typeclass search-paths to config file. This way you can add a path to your custom directory and don't have to write so much when creating typeclassed objects using e.g. @create.
This commit is contained in:
parent
b9c1921a0b
commit
d2400a8a6b
11 changed files with 112 additions and 173 deletions
|
|
@ -243,9 +243,10 @@ class ScriptDB(TypedObject):
|
|||
#
|
||||
#
|
||||
|
||||
# this is required to properly handle typeclass-dependent attributes
|
||||
# this is required to properly handle attrubutes and typeclass loading
|
||||
attribute_model_path = "src.scripts.models"
|
||||
attribute_model_name = "ScriptAttribute"
|
||||
typeclass_paths = settings.SCRIPT_TYPECLASS_PATHS
|
||||
|
||||
# this is used by all typedobjects as a fallback
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue