build: switch to python 3
This commit is contained in:
parent
7f5bd7b542
commit
84e02cd472
4
Makefile
4
Makefile
|
@ -14,9 +14,9 @@ themes.json: $(wildcard static/*/config.json)
|
|||
sassc $< $@
|
||||
|
||||
publik-base-theme/static/includes/_data_uris.scss: $(wildcard publik-base-theme/static/includes/img/*)
|
||||
cd publik-base-theme; python make_data_uris.py static/includes/
|
||||
cd publik-base-theme; python3 make_data_uris.py static/includes/
|
||||
|
||||
css: publik-base-theme/static/includes/_data_uris.scss $(shell python get_themes.py)
|
||||
css: publik-base-theme/static/includes/_data_uris.scss $(shell python3 get_themes.py)
|
||||
rm -rf static/*/.sass-cache/
|
||||
|
||||
clean:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#! /usr/bin/env python
|
||||
#! /usr/bin/env python3
|
||||
|
||||
import os
|
||||
|
||||
|
@ -6,4 +6,4 @@ for dirname in sorted(os.listdir('static')):
|
|||
config = os.path.join('static', dirname, 'config.json')
|
||||
if not os.path.exists(config):
|
||||
continue
|
||||
print 'static/%s/style.css' % dirname
|
||||
print('static/%s/style.css' % dirname)
|
||||
|
|
Reference in New Issue