From 62a847a565e8452fece07dc2202e22883aa526e0 Mon Sep 17 00:00:00 2001 From: pdxlocations Date: Wed, 15 Jan 2025 07:48:57 -0800 Subject: [PATCH] change db filepath to save in app directory --- globals.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/globals.py b/globals.py index b6786cb..24c9900 100644 --- a/globals.py +++ b/globals.py @@ -1,3 +1,8 @@ +import os + +app_directory = os.path.dirname(os.path.abspath(__file__)) +db_file_path = os.path.join(app_directory, "client.db") + all_messages = {} channel_list = [] notifications = set() @@ -9,7 +14,6 @@ selected_node = 0 current_window = 0 interface = None display_log = False -db_file_path = "client.db" message_prefix = ">>" sent_message_prefix = message_prefix + " Sent" -notification_symbol = "*" +notification_symbol = "*" \ No newline at end of file