mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +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:
|
||||
start_options["first_run_done"] = True
|
||||
|
||||
# Save start options
|
||||
with open("start_options.json", "w") as start_file:
|
||||
start_file.write(json.dumps(start_options))
|
||||
# Save start options
|
||||
with open("start_options.json", "w") as start_file:
|
||||
start_file.write(json.dumps(start_options))
|
||||
|
||||
print(
|
||||
"Successfully wrote your start script options to `start_options.json`. \n"
|
||||
"If something goes wrong, editing or deleting the file "
|
||||
"will reinstall TabbyAPI as a first-time user."
|
||||
)
|
||||
print(
|
||||
"Successfully wrote your start script options to `start_options.json`. \n"
|
||||
"If something goes wrong, editing or deleting the file "
|
||||
"will reinstall TabbyAPI as a first-time user."
|
||||
)
|
||||
|
||||
# Import entrypoint after installing all requirements
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user