[affich_tools] N'explose pas si stdout est un pseudo-objet
Ignore-this: 5f4dff531c70ea4d6bc8539fd2371db1 darcs-hash:20100110193809-ffbb2-7c97b6c914adf3fe4f6bfb061ef329d5995fec11.gz
This commit is contained in:
parent
f71288eb94
commit
5330a5506e
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ if 'TERM' in os.environ and os.environ['TERM'] != 'unknown':
|
|||
else:
|
||||
el = os.popen('tput -Tvt100 cr ; tput -Tvt100 el').read()
|
||||
|
||||
try:
|
||||
stdout_atty = sys.stdout.isatty()
|
||||
except IOError:
|
||||
stdout_atty = False
|
||||
|
||||
def dialog(backtitle,arg,dialogrc='') :
|
||||
""" Affiche la boite de dialogue défine avec les arguments fournis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue