diff options
| author | Dylan Araps <[email protected]> | 2017-08-09 11:26:57 +1000 |
|---|---|---|
| committer | Dylan Araps <[email protected]> | 2017-08-09 11:26:57 +1000 |
| commit | 0b8e6749f3bb7d351f62ddd2c19f01118a4d3d5c (patch) | |
| tree | 18c589ea148f3506d47535fffde8e6540dee6e65 | |
| parent | general: Make pywal compatible with python 3.5 (diff) | |
| download | pywal-0b8e6749f3bb7d351f62ddd2c19f01118a4d3d5c.tar.xz pywal-0b8e6749f3bb7d351f62ddd2c19f01118a4d3d5c.zip | |
util: Fix error on 3.6
| -rw-r--r-- | pywal/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pywal/util.py b/pywal/util.py index 411d459..707b3d2 100644 --- a/pywal/util.py +++ b/pywal/util.py @@ -59,7 +59,7 @@ def read_file_raw(input_file): def save_file(data, export_file): """Write data to a file.""" - create_dir(export_file.parent) + create_dir(os.path.dirname(str(export_file))) try: with open(str(export_file), "w") as file: @@ -70,7 +70,7 @@ def save_file(data, export_file): def save_file_json(data, export_file): """Write data to a json file.""" - create_dir(export_file.parent) + create_dir(os.path.dirname(str(export_file))) with open(str(export_file), "w") as file: json.dump(data, file, indent=4) |