Made the string set convertion message a little clearer. Also set up the template to add the protototype dir from the onset.
This commit is contained in:
parent
4d69e80787
commit
91b84213dd
2 changed files with 7 additions and 3 deletions
|
|
@ -1331,10 +1331,11 @@ def _convert_from_string(cmd, strobj):
|
|||
return _LITERAL_EVAL(strobj)
|
||||
except (SyntaxError, ValueError):
|
||||
# treat as string
|
||||
string = "{RNote: Value was converted to string. If you don't want this, "
|
||||
string += "use proper Python syntax, like enclosing strings in quotes.{n"
|
||||
strobj = utils.to_str(strobj)
|
||||
string = "{RNote: name \"{r%s{R\" was converted to a string. " \
|
||||
"Make sure this is acceptable." % strobj
|
||||
cmd.caller.msg(string)
|
||||
return utils.to_str(strobj)
|
||||
return strobj
|
||||
else:
|
||||
# fall back to old recursive solution (does not support
|
||||
# nested lists/dicts)
|
||||
|
|
|
|||
|
|
@ -32,6 +32,9 @@ SERVER_LOG_FILE = os.path.join(LOG_DIR, 'server.log')
|
|||
PORTAL_LOG_FILE = os.path.join(LOG_DIR, 'portal.log')
|
||||
HTTP_LOG_FILE = os.path.join(LOG_DIR, 'http_requests.log')
|
||||
|
||||
# Other defaults
|
||||
PROTOTYPE_MODULES = ("world.prototypes",)
|
||||
|
||||
######################################################################
|
||||
# Evennia Database config
|
||||
######################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue