Skip to content

Commit

Permalink
Fix loading themes with links
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiko2k committed Aug 3, 2024
1 parent 0a59adc commit 7e1e2a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2591,6 +2591,8 @@ def scan_folders(folders):
continue
paths = [os.path.join(folder, f) for f in os.listdir(folder)]
for path in paths:
if os.path.islink(path):
path = os.readlink(path)
if os.path.isfile(path):
if path[-7:] == '.ttheme':
themes.append((path, os.path.basename(path).split(".")[0]))
Expand Down

0 comments on commit 7e1e2a6

Please sign in to comment.