Skip to content

Commit dc069c4

Browse files
committed
refactor: join paths
1 parent 5233bbb commit dc069c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/config/paths.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ def get_thread_filepath(uid, filepath):
1111
return filepath.replace(base_prefix, new_prefix)
1212

1313

14-
DOCKER_DIR = os.getcwd() + "/docker"
15-
BASE_DIR = os.getcwd() + "/backend"
16-
TMP_FILE_DIR = BASE_DIR + "/tmp"
14+
DOCKER_DIR = os.path.join(os.getcwd(), "docker")
15+
BASE_DIR = os.path.join(os.getcwd(), "backend")
16+
TMP_FILE_DIR = os.path.join(BASE_DIR, "tmp")
1717

1818
RESOURCES_DIR = os.path.join(BASE_DIR, "resources")
1919
UPLOAD_DIR = os.path.join(TMP_FILE_DIR, "uploads")

0 commit comments

Comments
 (0)