2016-10-06 2 views

답변

2

사용 _cwd parameter는 당 명령으로 현재 작업 디렉토리를 설정합니다 : 이것은 모든 명령 작동

import sh 
print(sh.ls(_cwd='/tmp')) 

아니라 sh.ls합니다.

관련 문제