From a3d4b3d9f348fd308ad8a55f5ef71263e11b6875 Mon Sep 17 00:00:00 2001 From: dylan araps Date: Thu, 20 Jul 2017 13:44:47 +1000 Subject: api: Move CACHE_DIR --- pywal/export.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pywal/export.py') diff --git a/pywal/export.py b/pywal/export.py index 40024b0..68ae0eb 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -3,6 +3,7 @@ Export colors in various formats. """ import os +from pywal.settings import CACHE_DIR from pywal import util @@ -26,7 +27,7 @@ def template(colors, input_file, output_dir): print(f"export: Exported {template_file}.") -def export_all_templates(colors, template_dir=None, output_dir=None): +def export_all_templates(colors, template_dir=None, output_dir=CACHE_DIR): """Export all template files.""" # Add the template dir to module path. template_dir = template_dir or \ -- cgit v1.2.3