def __init__(self, encoding="utf8"): self.encoding = encoding self._session = self.session() self.uname = self._get_uname() self.cwd = RemoteWorkdir(self) self.env = RemoteEnv(self) self._python = None
def __init__(self, encoding="utf8", connect_timeout=10, new_session=False): self.encoding = encoding self.connect_timeout = connect_timeout self._session = self.session(new_session=new_session) self.uname = self._get_uname() self.cwd = RemoteWorkdir(self) self.env = RemoteEnv(self) self._python = None
def cwd(self): if not hasattr(self, '_cwd'): self._cwd = RemoteWorkdir(self) return self._cwd
def cwd(self): return RemoteWorkdir(self)