Skip to content
Snippets Groups Projects
Commit 64223656 authored by Nico's avatar Nico
Browse files

Convert Path.home() to string

parent 89bceb35
No related branches found
No related tags found
No related merge requests found
......@@ -6,13 +6,15 @@ from os.path import join
from pathlib import Path
from urllib.parse import urljoin
_BRIAR_DIR = ".briar"
_BRIAR_DIR_NAME = ".briar"
_HOME = str(Path.home())
_BRIAR_DIR = join(_HOME, _BRIAR_DIR_NAME)
_HOST = "%s://localhost:7000"
_VERSION_SUFFIX = "v1/"
BRIAR_AUTH_TOKEN = join(Path.home(), _BRIAR_DIR, "auth_token")
BRIAR_DB = join(Path.home(), _BRIAR_DIR, "db", "db.mv.db")
BRIAR_AUTH_TOKEN = join(_BRIAR_DIR, "auth_token")
BRIAR_DB = join(_BRIAR_DIR, "db", "db.mv.db")
BASE_HTTP_URL = urljoin(_HOST % "http", _VERSION_SUFFIX)
WEBSOCKET_URL = urljoin(_HOST % "ws", "%s/ws" % _VERSION_SUFFIX)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment