mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
supressing Python stdout
This commit is contained in:
parent
d6381e1897
commit
eed44c6791
1 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,8 @@ class BaseShell(object):
|
|||
return
|
||||
hist = builtins.__xonsh_history__
|
||||
ts1 = None
|
||||
tee = Tee()
|
||||
tee = Tee() if builtins.__xonsh_env__.get('XONSH_STORE_STDOUT', False) \
|
||||
else io.StringIO()
|
||||
try:
|
||||
ts0 = time.time()
|
||||
self.execer.exec(code, mode='single', glbs=self.ctx) # no locals
|
||||
|
|
Loading…
Add table
Reference in a new issue