diff options
| author | dylan araps <dylan.araps@gmail.com> | 2017-07-20 13:40:31 +1000 |
|---|---|---|
| committer | dylan araps <dylan.araps@gmail.com> | 2017-07-20 13:40:31 +1000 |
| commit | 88bdd9ab013bad324e1f3f4ad8516fd6d55ca312 (patch) | |
| tree | e41af644ec255deecda3156f2581182d312e7662 /pywal/export.py | |
| parent | 8917eef29e0d9279a74c35e0a59b29c9a89fbbc7 (diff) | |
api: Use wal file in __main__.py
Diffstat (limited to 'pywal/export.py')
| -rw-r--r-- | pywal/export.py | 7 |
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"], |
