Skip to content

Commit

Permalink
Merge pull request #355 from QuantConnect/bug-normalize-object-store-…
Browse files Browse the repository at this point in the history
…path

Normalize object storage path
  • Loading branch information
Martin-Molinero authored Aug 22, 2023
2 parents 7c888ca + 0120a06 commit e17aab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lean/components/docker/lean_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def get_basic_docker_config(self,
output_dir.mkdir(parents=True)

# Create the storage directory if it doesn't exist yet
storage_dir = project_dir / "storage"
storage_dir = self._lean_config_manager.get_cli_root_directory() / "storage"
if not storage_dir.exists():
storage_dir.mkdir(parents=True)

Expand Down
2 changes: 1 addition & 1 deletion tests/components/docker/test_lean_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def test_run_lean_mounts_storage_directory() -> None:
assert any([volume["bind"] == "/Storage" for volume in kwargs["volumes"].values()])

key = next(key for key in kwargs["volumes"].keys() if kwargs["volumes"][key]["bind"] == "/Storage")
assert key == str(Path.cwd() / "Python Project" / "storage")
assert key == str(Path.cwd() / "storage")


def test_run_lean_creates_output_directory_when_not_existing_yet() -> None:
Expand Down

0 comments on commit e17aab8

Please sign in to comment.