diff options
Diffstat (limited to 'core/init.lua')
-rw-r--r-- | core/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/init.lua b/core/init.lua index 66293773..f3d81512 100644 --- a/core/init.lua +++ b/core/init.lua @@ -17,6 +17,13 @@ if f then f:close() if theme and #theme > 0 then _THEME = theme end end +theme = _THEME +if not theme:find('[/\\]') then + _THEME = _HOME..'/themes/'..theme + if not lfs.attributes(_THEME) then + _THEME = _USERHOME..'/themes/'..theme + end +end require 'iface' require 'locale' |