mirror of
https://github.com/evennia/evennia.git
synced 2026-03-27 18:26:32 +01:00
Fix settings-reset functionality. Resolve #2187
This commit is contained in:
parent
1d233aa8f0
commit
ad7a8ae0d1
1 changed files with 2 additions and 2 deletions
|
|
@ -1368,10 +1368,10 @@ def create_settings_file(init=True, secret_settings=False):
|
|||
if not init:
|
||||
# if not --init mode, settings file may already exist from before
|
||||
if os.path.exists(settings_path):
|
||||
inp = eval(input("%s already exists. Do you want to reset it? y/[N]> " % settings_path))
|
||||
inp = input("%s already exists. Do you want to reset it? y/[N]> " % settings_path)
|
||||
if not inp.lower() == "y":
|
||||
print("Aborted.")
|
||||
return
|
||||
sys.exit()
|
||||
else:
|
||||
print("Reset the settings file.")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue