summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan araps <dylan.araps@gmail.com>2017-07-20 13:44:47 +1000
committerdylan araps <dylan.araps@gmail.com>2017-07-20 13:44:47 +1000
commita3d4b3d9f348fd308ad8a55f5ef71263e11b6875 (patch)
treede209ac19d36ba9a441417d0636f82626a792162
parent88bdd9ab013bad324e1f3f4ad8516fd6d55ca312 (diff)
api: Move CACHE_DIR
-rw-r--r--pywal/export.py3
-rw-r--r--pywal/wal.py3
2 files changed, 3 insertions, 3 deletions
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 \
diff --git a/pywal/wal.py b/pywal/wal.py
index 67109f1..6bf9c0c 100644
--- a/pywal/wal.py
+++ b/pywal/wal.py
@@ -2,7 +2,6 @@
wal - Generate and change colorschemes on the fly.
Created by Dylan Araps.
"""
-from pywal.settings import CACHE_DIR
from pywal import export
from pywal import image
from pywal import magic
@@ -31,7 +30,7 @@ def reload_env():
reload.reload_env()
-def export_all_templates(colors, template_dir=None, export_dir=CACHE_DIR):
+def export_all_templates(colors, template_dir=None, export_dir=None):
"""Export all templates."""
export.export_all_templates(colors, template_dir, export_dir)