Simple. I use the same function to read for themes and general prefs. When reding from or writing to a theme, only specific preferences are read/stored.
You don't want a theme telling you what arguments to send to the python interpreter, or some such nonsense.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When I optimizing the drPrefsFile.py, I found some place you test the THEME, why you test it? Why you don't read all options?
Simple. I use the same function to read for themes and general prefs. When reding from or writing to a theme, only specific preferences are read/stored.
You don't want a theme telling you what arguments to send to the python interpreter, or some such nonsense.