mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-04-11 22:40:01 +03:00
Merge pull request #30 from mariusvw/feature/issue-25
Issue #25, disable colors on non-tty
This commit is contained in:
commit
f1c15cec18
@ -18,12 +18,13 @@ import argparse
|
||||
from pprint import pprint as p
|
||||
import select
|
||||
|
||||
|
||||
try:
|
||||
import colorama
|
||||
use_color=True
|
||||
except ImportError:
|
||||
use_color=False
|
||||
use_color=False
|
||||
if sys.stdout.isatty():
|
||||
try:
|
||||
import colorama
|
||||
use_color=True
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
VERSION="3.0-rc6"
|
||||
HEADER="zfs-autobackup v{} - Copyright 2020 E.H.Eefting (edwin@datux.nl)\n".format(VERSION)
|
||||
|
Loading…
x
Reference in New Issue
Block a user