mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-09 06:49:45 +01:00
api: Move CACHE_DIR
This commit is contained in:
parent
88bdd9ab01
commit
a3d4b3d9f3
@ -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 \
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user