mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-28 19:03:17 +01:00
Update export.py
This commit is contained in:
parent
89119f88ab
commit
cec20ffba1
@ -6,7 +6,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
from . import util
|
from . import util
|
||||||
from .settings import CACHE_DIR, CONF_DIR, MODULE_DIR
|
from .settings import CACHE_DIR, CONF_DIR, MODULE_DIR, OS
|
||||||
|
|
||||||
|
|
||||||
def template(colors, input_file, output_file=None):
|
def template(colors, input_file, output_file=None):
|
||||||
@ -79,7 +79,7 @@ def flatten_colors(colors):
|
|||||||
Flatten dicts and convert colors to util.Color()"""
|
Flatten dicts and convert colors to util.Color()"""
|
||||||
wallpaper_path = colors["wallpaper"]
|
wallpaper_path = colors["wallpaper"]
|
||||||
|
|
||||||
if os == "Windows":
|
if OS == "Windows":
|
||||||
wallpaper_path = wallpaper_path.replace("\\", "\\\\")
|
wallpaper_path = wallpaper_path.replace("\\", "\\\\")
|
||||||
|
|
||||||
all_colors = {"wallpaper": wallpaper_path,
|
all_colors = {"wallpaper": wallpaper_path,
|
||||||
|
Loading…
Reference in New Issue
Block a user