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.
This function requires OS specific behaviours
"""
try:
cwd = self.terminator.pid_get_cwd (self._pid)
dbg ('get_cwd found: %s'%cwd)
except OSError:
err ('get_cwd: unable to get cwd of %d' % self._pid)
cwd = '~'
pass
err ('get_cwd found: %s'%cwd)
return (cwd)
def reconfigure_vte (self):