Skip to content

Commit 62a847a

Browse files
committed
change db filepath to save in app directory
1 parent 457e1a6 commit 62a847a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

globals.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import os
2+
3+
app_directory = os.path.dirname(os.path.abspath(__file__))
4+
db_file_path = os.path.join(app_directory, "client.db")
5+
16
all_messages = {}
27
channel_list = []
38
notifications = set()
@@ -9,7 +14,6 @@
914
current_window = 0
1015
interface = None
1116
display_log = False
12-
db_file_path = "client.db"
1317
message_prefix = ">>"
1418
sent_message_prefix = message_prefix + " Sent"
15-
notification_symbol = "*"
19+
notification_symbol = "*"

0 commit comments

Comments
 (0)