mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-05-30 22:47:14 +02:00
fix: incorrect json wallpaper path
Fix json path export on windows thats generate before
This commit is contained in:
parent
4997a49eb7
commit
1d180a7e17
@ -77,7 +77,12 @@ def template(colors, input_file, output_file=None):
|
|||||||
def flatten_colors(colors):
|
def flatten_colors(colors):
|
||||||
"""Prepare colors to be exported.
|
"""Prepare colors to be exported.
|
||||||
Flatten dicts and convert colors to util.Color()"""
|
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"],
|
"alpha": colors["alpha"],
|
||||||
**colors["special"],
|
**colors["special"],
|
||||||
**colors["colors"]}
|
**colors["colors"]}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user