Skip to content

Commit

Permalink
Merge pull request #688 from liyier90/fix-verify-install-main
Browse files Browse the repository at this point in the history
Fix: change to original directory after running verify install
  • Loading branch information
ongtw authored Aug 16, 2022
2 parents 78cd272 + 18a4e2f commit c055f8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions peekingduck/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import logging
import math
import os
import tempfile
from pathlib import Path
from time import perf_counter
Expand Down Expand Up @@ -430,6 +431,7 @@ def _verify_install() -> None:
"""
LoggerSetup.set_log_level("info")

cwd = Path.cwd()
with tempfile.TemporaryDirectory() as tmp_dir:
pipeline_config_path = Path(tmp_dir) / "verification_pipeline.yml"

Expand All @@ -456,3 +458,4 @@ def _verify_install() -> None:
num_iter=None,
)
runner.run()
os.chdir(cwd)

0 comments on commit c055f8b

Please sign in to comment.