summaryrefslogtreecommitdiff
path: root/pywal/template.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-22 22:26:49 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-22 22:26:49 +1000
commitde47c1beaaa77ee6f50235daba735ccc98ad608c (patch)
tree03fca45aead0204d0b8619d775077f1046230ba0 /pywal/template.py
parenta4ea6a4f7addc3ada3c466a763331d793190a342 (diff)
api: Remove wal.py
Diffstat (limited to 'pywal/template.py')
-rw-r--r--pywal/template.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pywal/template.py b/pywal/template.py
index 210e45e..1cb4197 100644
--- a/pywal/template.py
+++ b/pywal/template.py
@@ -3,7 +3,8 @@ Export colors in various formats.
"""
import os
-from pywal import util
+from .settings import __cache_dir__
+from . import util
def template(colors, input_file, output_dir):
@@ -16,7 +17,7 @@ def template(colors, input_file, output_dir):
print(f"export: Exported {template_name}.")
-def export_all_templates(colors, output_dir, template_dir=None):
+def export_all(colors, output_dir=__cache_dir__, template_dir=None):
"""Export all template files."""
template_dir = template_dir or \
os.path.join(os.path.dirname(__file__), "templates")