euscan: Adding config file support

Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
volpino
2012-09-02 18:58:01 +02:00
parent 332b5d7c80
commit 2019b245e8
3 changed files with 13 additions and 2 deletions

View File

@ -230,7 +230,8 @@ def parse_args():
def main():
"""Parse command line and execute all actions."""
CONFIG['nocolor'] = (
settings["NOCOLOR"] in ('yes', 'true') or not isatty
CONFIG['nocolor'] or
(settings["NOCOLOR"] in ('yes', 'true') or not isatty)
)
if CONFIG['nocolor']:
pp.output.nocolor()