summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-04-29 19:46:11 +1000
committerDylan Araps <dylan.araps@gmail.com>2018-04-29 19:46:11 +1000
commit9d73a5f8763febc4cecce46f3f35fc6d2bfcec80 (patch)
tree3560b23486128ac9b76cde12866f5ecc78a5d76c
parent6e5f82bdcfcc9f494101b67d2dbca482c1ef420d (diff)
general: Fix tests.
-rw-r--r--pywal/export.py1
-rw-r--r--pywal/theme.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/pywal/export.py b/pywal/export.py
index 8d5b33f..993e528 100644
--- a/pywal/export.py
+++ b/pywal/export.py
@@ -54,6 +54,7 @@ def every(colors, output_dir=CACHE_DIR):
colors = flatten_colors(colors)
template_dir = os.path.join(MODULE_DIR, "templates")
template_dir_user = os.path.join(CONF_DIR, "templates")
+ util.create_dir(template_dir_user)
join = os.path.join # Minor optimization.
for file in [*os.scandir(template_dir),
diff --git a/pywal/theme.py b/pywal/theme.py
index cbf9354..0e7a1e9 100644
--- a/pywal/theme.py
+++ b/pywal/theme.py
@@ -55,6 +55,7 @@ def file(input_file):
theme_name = ".".join((input_file, "json"))
user_theme_file = os.path.join(CONF_DIR, "colorschemes", theme_name)
theme_file = os.path.join(MODULE_DIR, "colorschemes", theme_name)
+ util.create_dir(os.path.dirname(user_theme_file))
# Find the theme file.
if os.path.isfile(input_file):