mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
@@ -1367,6 +1367,8 @@ def is_virtual_environment(path):
|
||||
def chdir(path):
|
||||
"""Context manager to change working directories."""
|
||||
from ._compat import Path
|
||||
if not path:
|
||||
return
|
||||
prev_cwd = Path.cwd().as_posix()
|
||||
if isinstance(path, Path):
|
||||
path = path.as_posix()
|
||||
|
||||
Reference in New Issue
Block a user