Browse Source

hide progress bars on mac

Nick Sweeting 5 years ago
parent
commit
84a8b0d713
1 changed files with 2 additions and 1 deletions
  1. 2 1
      archivebox/config/__init__.py

+ 2 - 1
archivebox/config/__init__.py

@@ -7,6 +7,7 @@ import sys
 import django
 import django
 import getpass
 import getpass
 import shutil
 import shutil
+import platform
 
 
 from hashlib import md5
 from hashlib import md5
 from pathlib import Path
 from pathlib import Path
@@ -44,7 +45,7 @@ CONFIG_DEFAULTS: Dict[str, ConfigDefaultDict] = {
     'SHELL_CONFIG': {
     'SHELL_CONFIG': {
         'IS_TTY':                   {'type': bool,  'default': lambda _: sys.stdout.isatty()},
         'IS_TTY':                   {'type': bool,  'default': lambda _: sys.stdout.isatty()},
         'USE_COLOR':                {'type': bool,  'default': lambda c: c['IS_TTY']},
         'USE_COLOR':                {'type': bool,  'default': lambda c: c['IS_TTY']},
-        'SHOW_PROGRESS':            {'type': bool,  'default': lambda c: c['IS_TTY']},
+        'SHOW_PROGRESS':            {'type': bool,  'default': lambda c: False if platform.system() == 'Darwin' else c['IS_TTY']},  # TODO: remove this temporary hack once progress bars are fixed on macOS
         'IN_DOCKER':                {'type': bool,  'default': False},
         'IN_DOCKER':                {'type': bool,  'default': False},
         # TODO: 'SHOW_HINTS':       {'type:  bool,  'default': True},
         # TODO: 'SHOW_HINTS':       {'type:  bool,  'default': True},
     },
     },