Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
general: Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Apr 29, 2018
1 parent 6e5f82b commit 9d73a5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pywal/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def every(colors, output_dir=CACHE_DIR):
colors = flatten_colors(colors)
template_dir = os.path.join(MODULE_DIR, "templates")
template_dir_user = os.path.join(CONF_DIR, "templates")
util.create_dir(template_dir_user)

join = os.path.join # Minor optimization.
for file in [*os.scandir(template_dir),
Expand Down
1 change: 1 addition & 0 deletions pywal/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def file(input_file):
theme_name = ".".join((input_file, "json"))
user_theme_file = os.path.join(CONF_DIR, "colorschemes", theme_name)
theme_file = os.path.join(MODULE_DIR, "colorschemes", theme_name)
util.create_dir(os.path.dirname(user_theme_file))

# Find the theme file.
if os.path.isfile(input_file):
Expand Down

0 comments on commit 9d73a5f

Please sign in to comment.