diff --git a/conda-store-server/conda_store_server/server/app.py b/conda-store-server/conda_store_server/server/app.py index a96857b28..9a0a91c90 100644 --- a/conda-store-server/conda_store_server/server/app.py +++ b/conda-store-server/conda_store_server/server/app.py @@ -1,5 +1,6 @@ import logging import os +import posixpath import sys import conda_store_server @@ -198,9 +199,9 @@ def trim_slash(url): app = FastAPI( title="conda-store", version=__version__, - openapi_url=os.path.join(self.url_prefix, "openapi.json"), - docs_url=os.path.join(self.url_prefix, "docs"), - redoc_url=os.path.join(self.url_prefix, "redoc"), + openapi_url=posixpath.join(self.url_prefix, "openapi.json"), + docs_url=posixpath.join(self.url_prefix, "docs"), + redoc_url=posixpath.join(self.url_prefix, "redoc"), contact={ "name": "Quansight", "url": "https://quansight.com", diff --git a/conda-store-server/conda_store_server/storage.py b/conda-store-server/conda_store_server/storage.py index 3d014533f..5f349a676 100644 --- a/conda-store-server/conda_store_server/storage.py +++ b/conda-store-server/conda_store_server/storage.py @@ -1,5 +1,6 @@ import io import os +import posixpath import shutil import minio @@ -223,7 +224,7 @@ def get(self, key): return f.read() def get_url(self, key): - return os.path.join(self.storage_url, key) + return posixpath.join(self.storage_url, key) def delete(self, db, build_id, key): filename = os.path.join(self.storage_path, key)