From 2cd90552f9fd725263898fe24085e9ae9cee224b Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Fri, 29 May 2009 16:34:48 +0200 Subject: [PATCH] Add pid_get_cwd support for SunOS. Patch from Lewis Thompson. Closes LP #381610. --- terminatorlib/terminator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminatorlib/terminator.py b/terminatorlib/terminator.py index 1485d87c..f1f483a2 100755 --- a/terminatorlib/terminator.py +++ b/terminatorlib/terminator.py @@ -270,6 +270,9 @@ class Terminator: elif platform.system() == 'Linux': dbg ('Using Linux self.pid_get_cwd') self.pid_get_cwd = lambda pid: os.path.realpath ('/proc/%s/cwd' % pid) + elif platform.system() == 'SunOS': + dbg ('Using SunOS self.pid_get_cwd') + self.pid_get_cwd = lambda pid: os.path.realpath ('/proc/%s/path/cwd' % pid) else: dbg ('Unable to set a self.pid_get_cwd, unknown system: %s' % platform.system)