summaryrefslogtreecommitdiff
path: root/pywal/export.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-08-09 11:22:51 +1000
commitd98be353ecd5deff97804312ec798fb227adfbc1 (patch)
tree84491474f6e0648dea3a7689f0626a4809492007 /pywal/export.py
parentd9a0865277dfdfe7951b9b429d5af1f2be27d66c (diff)
general: Make pywal compatible with python 3.5
Diffstat (limited to 'pywal/export.py')
-rw-r--r--pywal/export.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pywal/export.py b/pywal/export.py
index 748e3a9..d621672 100644
--- a/pywal/export.py
+++ b/pywal/export.py
@@ -45,7 +45,7 @@ def every(colors, output_dir=CACHE_DIR):
all_colors = flatten_colors(colors)
output_dir = pathlib.Path(output_dir)
- for file in os.scandir(MODULE_DIR / "templates"):
+ for file in os.scandir(str(MODULE_DIR / "templates")):
template(all_colors, file.path, output_dir / file.name)
print("export: Exported all files.")
@@ -61,6 +61,6 @@ def color(colors, export_type, output_file=None):
if template_file.is_file():
template(all_colors, template_file, output_file)
- print(f"export: Exported {export_type}.")
+ print("export: Exported %s." % export_type)
else:
- print(f"[!] warning: template '{export_type}' doesn't exist.")
+ print("warning: template '%s' doesn't exist." % export_type)