load theme css with version too

This commit is contained in:
j 2014-01-11 05:02:26 +00:00
parent 6a133723be
commit 60f7599dbf

View file

@ -52,7 +52,7 @@ def build_oxjs(downloads=False, geo=False):
# Ox.UI CSS # Ox.UI CSS
css = read_file(source_path + 'Ox.UI/css/Ox.UI.css') css = read_file(source_path + 'Ox.UI/css/Ox.UI.css')
css = css.replace('$import', '\n'.join([ css = css.replace('$import', '\n'.join([
'@import url("../themes/%s/css/theme.css");' % theme for theme in themes '@import url("../themes/%s/css/theme.css?%s");' % (theme, version) for theme in themes
])) ]))
write_file('%sOx.UI/css/Ox.UI.css' % build_path, css) write_file('%sOx.UI/css/Ox.UI.css' % build_path, css)
write_file('%sOx.UI/css/Ox.UI.css' % dev_path, css) write_file('%sOx.UI/css/Ox.UI.css' % dev_path, css)