소스 검색

fix(dw_base): env_loader 兼容 Python 3.6(capture_output → stdout/stderr PIPE)

tianyu.chu 2 주 전
부모
커밋
858d7750b5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dw_base/utils/env_loader.py

+ 1 - 1
dw_base/utils/env_loader.py

@@ -15,7 +15,7 @@ def bootstrap_env(env_sh_path: str = None) -> None:
         env_sh_path = str(project_root / 'conf' / 'env.sh')
     result = subprocess.run(
         ['bash', '-c', f'. "{env_sh_path}" && env -0'],
-        capture_output=True, check=True,
+        stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True,
     )
     for entry in result.stdout.split(b'\x00'):
         if not entry: