Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mlflow_export_import/client/http_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from abc import abstractmethod, ABCMeta
import os
import json
import requests
from urllib.parse import urljoin
import click
from mlflow_export_import.common import MlflowExportImportException
from . import USER_AGENT
Expand Down Expand Up @@ -94,7 +94,7 @@ def __init__(self, api_name, host=None, token=None):
http_status_code=401
)
self.host = host
self.api_uri = os.path.join(host, api_name)
self.api_uri = urljoin(host, api_name)
self.token = token


Expand Down
2 changes: 2 additions & 0 deletions mlflow_export_import/common/logging_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,6 @@ def _create_default_log_config(output_path=None, log_format=None):
handlers = cfg["root"]["handlers"]
handlers.remove("file")

os.makedirs(os.path.dirname(cfg["handlers"]["file"]["filename"]), exist_ok=True)

return cfg