Allow get_cwd to fail

This commit is contained in:
Chris Jones 2008-10-28 00:29:41 +00:00
parent 9c75e20492
commit 6c483def9d
1 changed files with 7 additions and 2 deletions

View File

@ -493,8 +493,13 @@ text/plain
""" Return the current working directory of the subprocess. """ Return the current working directory of the subprocess.
This function requires OS specific behaviours This function requires OS specific behaviours
""" """
cwd = self.terminator.pid_get_cwd (self._pid) try:
dbg ('get_cwd found: %s'%cwd) cwd = self.terminator.pid_get_cwd (self._pid)
except OSError:
err ('get_cwd: unable to get cwd of %d' % self._pid)
cwd = '~'
pass
err ('get_cwd found: %s'%cwd)
return (cwd) return (cwd)
def reconfigure_vte (self): def reconfigure_vte (self):