added some nice env vars

--HG--
branch : pmacs2
This commit is contained in:
moculus 2009-04-02 14:17:10 +00:00
parent 29dbe6ed40
commit 7c3b05dcc8
1 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,12 @@ class XTermBuffer(Buffer, XTerm):
self._pid, self._pty = pty.fork()
if self._pid == 0:
# child process
env = {'TERM': self.termtype, 'PATH': os.getenv('PATH')}
env = {
'TERM': self.termtype,
'PATH': os.getenv('PATH'),
'USER': os.getenv('USER'),
'HOME': os.getenv('HOME'),
}
os.execvpe(cmd, [cmd] + args, env)
self._lock = threading.Lock()