Skip to content

Commit

Permalink
pass the test
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuarli committed Oct 1, 2024
1 parent de31bcd commit 303719c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions devenv/sync.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import annotations

import contextlib
import importlib.util
import os
from collections.abc import Sequence
Expand Down Expand Up @@ -31,8 +32,8 @@ def main(context: Context, argv: Sequence[str] | None = None) -> int:
"coderoot": context.get("code_root"),
}

os.chdir(repo.path)
return module.main(context_compat) # type: ignore
with contextlib.chdir(repo.path):
return module.main(context_compat) # type: ignore


module_info = DevModuleInfo(
Expand Down

0 comments on commit 303719c

Please sign in to comment.