Skip to content
This repository was archived by the owner on Apr 6, 2022. It is now read-only.

Commit 5749819

Browse files
author
Jason Snow
authored
Merge pull request #9 from nelsonad/fix_windows_environment
change url concatentation for windows compat
2 parents f1e26a0 + d5cb42f commit 5749819

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

youversion/youversion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from datetime import datetime
33
from os import path, getcwd
44
from shutil import copyfileobj
5+
from posixpath import join as urljoin
56

67
import requests
78

@@ -338,7 +339,7 @@ def _get(self, resource: str, *args, **kwargs):
338339
:return: json response
339340
"""
340341

341-
url = path.join(API.BASE_URL, resource)
342+
url = urljoin(API.BASE_URL, resource)
342343
response = requests.get(url, headers=self._header, **kwargs)
343344

344345
if response.ok:

0 commit comments

Comments
 (0)