mirror of https://gitlab.com/bashrc2/epicyon
Avoid subdirectories
parent
b2a481ce75
commit
3f4d72c6e0
3
theme.py
3
theme.py
|
@ -25,10 +25,11 @@ def getThemesList(baseDir: str) -> []:
|
|||
and to lookup function names
|
||||
"""
|
||||
themes = []
|
||||
for subdir, dirs, files in next(os.walk(baseDir + '/theme')):
|
||||
for subdir, dirs, files in os.walk(baseDir + '/theme'):
|
||||
for themeName in dirs:
|
||||
if '~' not in themeName and themeName != 'icons':
|
||||
themes.append(themeName.title())
|
||||
break
|
||||
print('Themes available: ' + str(themes))
|
||||
return themes
|
||||
|
||||
|
|
Loading…
Reference in New Issue