mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-04-29 02:31:48 +00:00
Start: Broadcast start_options only on first-time run
Prevents the save from occurring multiple times for no reason. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
16
start.py
16
start.py
@@ -234,15 +234,15 @@ if __name__ == "__main__":
|
|||||||
if first_run:
|
if first_run:
|
||||||
start_options["first_run_done"] = True
|
start_options["first_run_done"] = True
|
||||||
|
|
||||||
# Save start options
|
# Save start options
|
||||||
with open("start_options.json", "w") as start_file:
|
with open("start_options.json", "w") as start_file:
|
||||||
start_file.write(json.dumps(start_options))
|
start_file.write(json.dumps(start_options))
|
||||||
|
|
||||||
print(
|
print(
|
||||||
"Successfully wrote your start script options to `start_options.json`. \n"
|
"Successfully wrote your start script options to `start_options.json`. \n"
|
||||||
"If something goes wrong, editing or deleting the file "
|
"If something goes wrong, editing or deleting the file "
|
||||||
"will reinstall TabbyAPI as a first-time user."
|
"will reinstall TabbyAPI as a first-time user."
|
||||||
)
|
)
|
||||||
|
|
||||||
# Import entrypoint after installing all requirements
|
# Import entrypoint after installing all requirements
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user