mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-25 09:23:08 +01:00
Save used theme in CACHE_DIR
This commit is contained in:
parent
a84b5ec2ab
commit
3bc9f10451
@ -6,7 +6,7 @@ import os
|
||||
import random
|
||||
import sys
|
||||
|
||||
from .settings import CONF_DIR, MODULE_DIR
|
||||
from .settings import CACHE_DIR, CONF_DIR, MODULE_DIR
|
||||
from . import util
|
||||
|
||||
|
||||
@ -116,6 +116,7 @@ def file(input_file, light=False):
|
||||
if os.path.isfile(theme_file):
|
||||
logging.info("Set theme to \033[1;37m%s\033[0m.",
|
||||
os.path.basename(theme_file))
|
||||
util.save_file(os.path.basename(theme_file), os.path.join(CACHE_DIR, "theme"))
|
||||
return parse(theme_file)
|
||||
|
||||
logging.error("No %s colorscheme file found.", bri)
|
||||
|
Loading…
Reference in New Issue
Block a user