Test passing sys.argv directly into execute_from_command
This commit is contained in:
parent
f989f3514b
commit
4fb25e7ee7
1 changed files with 1 additions and 1 deletions
|
|
@ -2282,7 +2282,7 @@ def main():
|
||||||
# but keep 'evennia' as the name instead of django-admin. This is
|
# but keep 'evennia' as the name instead of django-admin. This is
|
||||||
# an exit condition.
|
# an exit condition.
|
||||||
sys.argv[0] = re.sub(r"(-script\.pyw?|\.exe)?$", "", sys.argv[0])
|
sys.argv[0] = re.sub(r"(-script\.pyw?|\.exe)?$", "", sys.argv[0])
|
||||||
sys.exit(execute_from_command_line())
|
sys.exit(execute_from_command_line(sys.argv))
|
||||||
|
|
||||||
elif not args.tail_log:
|
elif not args.tail_log:
|
||||||
# no input; print evennia info (don't pring if we're tailing log)
|
# no input; print evennia info (don't pring if we're tailing log)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue