Browse Source

Исправлена работа cl-update в tmux

tags/3.3.3.2
Mike Khiretskiy 6 years ago
parent
commit
f61f898d3c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      pym/update/emerge_parser.py

+ 4
- 0
pym/update/emerge_parser.py View File

@@ -50,6 +50,8 @@ class EmergeNeedRootError(EmergeError):
pass


env_terminal_linux = {'TERM':'linux'}

class CommandExecutor(object):
"""
Запуск программы для объекта Emerge
@@ -60,6 +62,7 @@ class CommandExecutor(object):
self.cwd = cwd
self.env = env or dict(os.environ)
self.env.update({'EINFO_QUIET':'NO'})
self.env.update(env_terminal_linux)
self.cmd = cmd
self.params = params
self.child = None
@@ -117,6 +120,7 @@ class EmergeCommand(CommandExecutor):
}
default_env.update(os.environ)
self.env = env or default_env
self.env.update(env_terminal_linux)
self.cwd = cwd
if logfile:
self.logfile = logfile


Loading…
Cancel
Save