Remove contextVars #24

Merged
bmartin5692 merged 3 commits from remove_Context into dev_broken-XMPP 2019-05-12 21:51:00 +02:00
Showing only changes of commit c4900be511 - Show all commits

View file

@ -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: