From 84e02cd47229dd1ca481ec650c8c7186a0be893f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 4 May 2020 17:54:17 +0200 Subject: [PATCH] build: switch to python 3 --- Makefile | 4 ++-- get_themes.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 58bc85c..d4b170f 100644 --- a/Makefile +++ b/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: diff --git a/get_themes.py b/get_themes.py index aa64164..c99ea79 100644 --- a/get_themes.py +++ b/get_themes.py @@ -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)