def get_proc(shell, homedir):
return pexpect.spawn(
shell[0], list(shell[1:]),
timeout=5,
env={
'COVERAGE_PROCESS_START': os.environ.get(
'COVERAGE_PROCESS_START', '',
),
'PS1': PS1,
'TOP': os.environ.get('TOP', ''),
'HOME': str(homedir),
'PATH': os.path.dirname(sys.executable) + os.defpath
},
)
评论列表
文章目录