summaryrefslogtreecommitdiff
path: root/pywal/export.py
diff options
context:
space:
mode:
Diffstat (limited to 'pywal/export.py')
-rw-r--r--pywal/export.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/pywal/export.py b/pywal/export.py
index 9eea198..40024b0 100644
--- a/pywal/export.py
+++ b/pywal/export.py
@@ -3,7 +3,6 @@ Export colors in various formats.
"""
import os
-from pywal.settings import CACHE_DIR
from pywal import util
@@ -27,12 +26,16 @@ def template(colors, input_file, output_dir):
print(f"export: Exported {template_file}.")
-def export_all_templates(colors, template_dir=None, output_dir=CACHE_DIR):
+def export_all_templates(colors, template_dir=None, output_dir=None):
"""Export all template files."""
# Add the template dir to module path.
template_dir = template_dir or \
os.path.join(os.path.dirname(__file__), "templates")
+ # Convert path strings into Path types.
+ template_dir = util.str_to_path(template_dir)
+ output_dir = util.str_to_path(output_dir)
+
# Merge all colors (specials and normals) into one dict so we can access
# their values simpler.
all_colors = {"wallpaper": colors["wallpaper"],