summaryrefslogtreecommitdiff
path: root/pywal/export.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-07-20 23:19:13 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-07-20 23:19:13 +1000
commit52cd5e5f1a7c972a593fe55a853afd43111531e9 (patch)
tree86a972bee26b93db9f8f8bd3fd5c8d05553ec4c0 /pywal/export.py
parenta3d4b3d9f348fd308ad8a55f5ef71263e11b6875 (diff)
General: Unhardcode all CACHE_DIR and COLOR_COUNT usage.
Diffstat (limited to 'pywal/export.py')
-rw-r--r--pywal/export.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/pywal/export.py b/pywal/export.py
index 68ae0eb..06ad215 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,16 +26,12 @@ 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, output_dir, template_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"],