

def session(self, new_session=False):
    'Creates a new :class:`ShellSession <plumbum.session.ShellSession>` object; this\n        invokes ``/bin/sh`` and executes commands on it over stdin/stdout/stderr'
    return ShellSession(self['sh'].popen(new_session=new_session))

dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/machines/local.py LocalMachine.session/original