diff options
| author | Dylan Araps <dylanaraps@users.noreply.github.com> | 2017-07-10 00:09:11 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-10 00:09:11 +1000 |
| commit | a6f99791ce79f0eed40396e8f3462413ce66554c (patch) | |
| tree | 77bd9cc12991137d6449c7a3cc1e492363c99ffb /pywal/util.py | |
| parent | dd95c26b40fc08abe9b9a6b27cbab77ffb00ad28 (diff) | |
| parent | c38c89ece1d41942fa322c555993e50e5c515e41 (diff) | |
Merge pull request #42 from dylanaraps/wallpaper
export: Add wallpaper to export files.
Diffstat (limited to 'pywal/util.py')
| -rw-r--r-- | pywal/util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pywal/util.py b/pywal/util.py index 2796d8e..6c5b420 100644 --- a/pywal/util.py +++ b/pywal/util.py @@ -54,6 +54,11 @@ def read_file_json(input_file): """Read data from a json file.""" with open(input_file) as json_file: data = json.load(json_file) + + # If wallpaper is unset, set it to "None" + if "wallpaper" not in data: + data["wallpaper"] = "None" + return data |
