Phuket2
Nov 25, 2016 - 17:40
This is a little pathetic in a way. But I did not take advantage of the themes dict already defined in the editor.py before. I have a static text item stored as a snippet for the theme names.
I was just looking at editor.py for something else, then realised I can get a list of themes from the editor module.
Anyway, it's simple. Here it is.
import editor
theme_list = list(editor.theme_filenames.keys())
print(theme_list)