Merge async and xmpp work #34
1 changed files with 5 additions and 8 deletions
|
|
@ -77,15 +77,12 @@ def db_file():
|
|||
|
||||
|
||||
def os_db_path():
|
||||
db_path = ""
|
||||
if platform.system() == "Windows":
|
||||
|
||||
db_path = os.path.join(os.getenv("APPDATA"))
|
||||
os.makedirs(os.getenv("APPDATA"), exist_ok=True) #Ensure db_path directory exists or create
|
||||
return os.path.join(os.getenv("APPDATA"), "bumper.db")
|
||||
else:
|
||||
db_path = os.path.expanduser("~/.config")
|
||||
|
||||
os.makedirs(db_path, exist_ok=True) #Ensure db_path directory exists or create
|
||||
return os.path.join(db_path, "bumper.db")
|
||||
os.makedirs(os.path.expanduser("~/.config"), exist_ok=True) #Ensure db_path directory exists or create
|
||||
return os.path.expanduser("~/.config/bumper.db")
|
||||
|
||||
def db_get():
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue