Fix settings-reset functionality. Resolve #2187
This commit is contained in:
parent
2a392c290d
commit
7fd29a9093
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:
|
||||||
# if not --init mode, settings file may already exist from before
|
# if not --init mode, settings file may already exist from before
|
||||||
if os.path.exists(settings_path):
|
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":
|
if not inp.lower() == "y":
|
||||||
print("Aborted.")
|
print("Aborted.")
|
||||||
return
|
sys.exit()
|
||||||
else:
|
else:
|
||||||
print("Reset the settings file.")
|
print("Reset the settings file.")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue