Skip to content

Commit

Permalink
handle themes in sub-directories for git repos
Browse files Browse the repository at this point in the history
Now compatible with my [theme_listing](https://github.com/AngeDieu/Numworks-themes-listing)
  • Loading branch information
AngeDieu committed Aug 22, 2023
1 parent 6e05651 commit 7b4680c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion themes/themes_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ def handle_git(args):
else: # If directory doesn't exist, clone.
git_clone(args.repo, output_path)

handle_theme(args, output_path)
for root, dirs, files in os.walk(output_path):
if args.theme in dirs:
theme_path = root
break

handle_theme(args, theme_path)


def handle_theme(args, path):
Expand Down

0 comments on commit 7b4680c

Please sign in to comment.