Improve formatting

This commit is contained in:
Thomas Hurst 2008-07-17 18:32:24 +01:00
parent a1c3bc264d
commit b602ecfe9c
1 changed files with 16 additions and 10 deletions

View File

@ -364,6 +364,7 @@ text/plain
self.matches['email'] = self._vte.match_add (lboundry + "(mailto:)?[a-zA-Z0-9][a-zA-Z0-9.+-]*@[a-zA-Z0-9][a-zA-Z0-9-]*\.[a-zA-Z0-9][a-zA-Z0-9-]+[.a-zA-Z0-9-]*" + rboundry)
self.matches['nntp'] = self._vte.match_add (lboundry + '''news:[-A-Z\^_a-z{|}~!"#$%&'()*+,./0-9;:=?`]+@[-A-Za-z0-9.]+(:[0-9]+)?''' + rboundry)
def spawn_child (self, event=None):
update_records = self.conf.update_records
login = self.conf.login_shell
@ -419,14 +420,19 @@ text/plain
dbg ('SEGBUG: Setting WINDOWID')
os.putenv ('WINDOWID', '%s' % self._vte.get_parent_window().xid)
dbg ('SEGBUG: Forking command: "%s" with args "%s", loglastlog = "%s", logwtmp = "%s", logutmp = "%s" and cwd "%s"'%(shell, args, login, update_records, update_records, self.cwd))
self._pid = self._vte.fork_command (command = shell, argv = args, envv = [], loglastlog = login, logwtmp = update_records, logutmp = update_records, directory=self.cwd)
dbg ('SEGBUG: Forking command: "%s" with args "%s", loglastlog = "%s", ' \
'logwtmp = "%s", logutmp = "%s" and cwd "%s"' % (shell, args, login,
update_records, update_records, self.cwd))
self._pid = self._vte.fork_command (command = shell, argv = args,
envv = [], loglastlog = login, logwtmp = update_records,
logutmp = update_records, directory=self.cwd)
dbg ('SEGBUG: Forked command')
if self._pid == -1:
err (_('Unable to start shell: ') + shell)
return (-1)
def get_cwd (self):
""" Return the current working directory of the subprocess.
This function requires OS specific behaviours