From 1d180a7e17a025c225dab55d9c763b7ca2d91e41 Mon Sep 17 00:00:00 2001 From: npdev453 Date: Tue, 24 Nov 2020 12:54:13 +0300 Subject: [PATCH] fix: incorrect json wallpaper path Fix json path export on windows thats generate before --- pywal/export.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pywal/export.py b/pywal/export.py index 47ea4d2..b92c764 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -77,7 +77,12 @@ def template(colors, input_file, output_file=None): def flatten_colors(colors): """Prepare colors to be exported. Flatten dicts and convert colors to util.Color()""" - all_colors = {"wallpaper": colors["wallpaper"], + wallpaper_path = colors["wallpaper"] + + if os == "Windows" : + wallpaper_path = wallpaper_path.replace("\\","\\\\") + + all_colors = {"wallpaper": wallpaper_path, "alpha": colors["alpha"], **colors["special"], **colors["colors"]}