diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-07-01 19:45:53 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-07-01 19:45:53 +1000 |
| commit | 0425f1d8aa0de1f499d6e93b731f193994f59902 (patch) | |
| tree | 324d35a53ecc798b9facaf91578e4610400dcd31 /pywal/export.py | |
| parent | 0f6b48523ca188f9085b6d3295345c53b75aed20 (diff) | |
util: Fix set_grey type mismatch.
Diffstat (limited to 'pywal/export.py')
| -rw-r--r-- | pywal/export.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pywal/export.py b/pywal/export.py index dce39d4..5e7f2e6 100644 --- a/pywal/export.py +++ b/pywal/export.py @@ -10,9 +10,6 @@ from pywal import util def template(colors, input_file, output_dir): """Read template file, substitute markers and save the file elsewhere.""" - # Get the template name. - template_file = os.path.basename(input_file) - # Import the template. with open(input_file) as file: template_data = file.readlines() @@ -20,6 +17,9 @@ def template(colors, input_file, output_dir): # Format the markers. template_data = "".join(template_data).format(**colors) + # Get the template name. + template_file = os.path.basename(input_file) + # Export the template. output_file = output_dir / template_file util.save_file(template_data, output_file) |
