Skip to content

Commit

Permalink
Merge 64cdc96 into 863c97c
Browse files Browse the repository at this point in the history
  • Loading branch information
BradenM committed Oct 13, 2019
2 parents 863c97c + 64cdc96 commit 37006f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions micropy/stubs/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import tempfile
from contextlib import contextmanager
from functools import partial
from pathlib import Path
from pathlib import Path, PurePosixPath
from urllib import parse

import requests
Expand Down Expand Up @@ -65,8 +65,8 @@ def get_url(self, path):
Returns:
str: formatted url
"""
base_path = Path(parse.urlparse(self.location).path)
pkg_path = base_path / Path(self.path) / Path(path)
base_path = PurePosixPath(parse.urlparse(self.location).path)
pkg_path = base_path / PurePosixPath(self.path) / PurePosixPath(path)
url = parse.urljoin(self.location, str(pkg_path))
self.log.debug(f"Stub Url: {url}")
return url
Expand Down

0 comments on commit 37006f2

Please sign in to comment.