misc: cleanup

This commit is contained in:
Dylan Araps 2018-04-02 16:19:09 +10:00
parent 311fbf2b6c
commit 385dcb6887
2 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ def get(img, light=False, backend="wal", cache_dir=CACHE_DIR):
logging.info("Found cached colorscheme.")
else:
logging.info("Generating a colorscheme...")
logging.info("Generating a colorscheme.")
backend = get_backend(backend)
# Dynamically import the backend we want to use.

View File

@ -33,12 +33,12 @@ def oomox(gen_theme):
"""Call oomox to generate a theme."""
if gen_theme:
if not shutil.which("oomox-cli"):
logging.warning("Oomox not found, skipping...")
logging.warning("Oomox not found, skipping.")
return
oomox_file = os.path.join(CACHE_DIR, "colors-oomox")
logging.info("Waiting for oomox...")
logging.info("Waiting for Oomox.")
subprocess.run(["oomox-cli", "-o", "wal", oomox_file],
stdout=subprocess.DEVNULL)