Skip to content

Commit

Permalink
fix: change to original directory after running verify install
Browse files Browse the repository at this point in the history
  • Loading branch information
liyier90 committed Aug 16, 2022
1 parent 78cd272 commit 18a4e2f
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 18a4e2f

Please sign in to comment.