Skip to content

Commit

Permalink
Fix colorama import to restrict usage to Windows systems only
Browse files Browse the repository at this point in the history
  • Loading branch information
EJ-PJ authored and eylles committed Jan 5, 2025
1 parent 565b656 commit 3432580
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pywal/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@
import shutil
import sys

try:
if sys.platform.startswith("win"):
import colorama

colorama.just_fix_windows_console() # NOOP for non-Windows
except ImportError:
pass
colorama.just_fix_windows_console()

from .settings import __version__, CACHE_DIR, CONF_DIR
from . import colors
Expand Down

0 comments on commit 3432580

Please sign in to comment.