From 768f1c66e6165857468e52e2c6fc5882f3bfb333 Mon Sep 17 00:00:00 2001 From: fram3d Date: Wed, 27 Sep 2023 16:47:55 +0200 Subject: [PATCH] and shebangs and make all scripts executable --- atom_gen.py | 2 +- blog.py | 1 + build_pages.py | 3 ++- image_poster.py | 4 ++-- poster.py | 1 + prep.py | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) mode change 100644 => 100755 blog.py mode change 100644 => 100755 build_pages.py mode change 100644 => 100755 image_poster.py mode change 100644 => 100755 poster.py mode change 100644 => 100755 prep.py diff --git a/atom_gen.py b/atom_gen.py index e9e0828..091a2d1 100755 --- a/atom_gen.py +++ b/atom_gen.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3 +#! /usr/bin/env python3 # needs lowdown and feegden installed # feedgen can be installed with pip diff --git a/blog.py b/blog.py old mode 100644 new mode 100755 index e059b3a..4bfb304 --- a/blog.py +++ b/blog.py @@ -1,3 +1,4 @@ +#! /usr/bin/env python3 # just testing markdown library for now from markdown import markdown as to_markdown diff --git a/build_pages.py b/build_pages.py old mode 100644 new mode 100755 index fe493a1..1c49640 --- a/build_pages.py +++ b/build_pages.py @@ -1,3 +1,4 @@ +#! /usr/bin/env python3 import os PAGES = [ @@ -38,4 +39,4 @@ def main(): f.close() if __name__ == '__main__': - main() \ No newline at end of file + main() diff --git a/image_poster.py b/image_poster.py old mode 100644 new mode 100755 index 551e829..83dc547 --- a/image_poster.py +++ b/image_poster.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import freetype import io @@ -86,4 +86,4 @@ img = drawPoster(events, (0, 0, 0), (20, 250, 50)) img.save('poster_dark.png') img = drawPoster(events, (255, 255, 255), (0, 0, 0)) -img.save('poster_light.png') \ No newline at end of file +img.save('poster_light.png') diff --git a/poster.py b/poster.py old mode 100644 new mode 100755 index 5572b11..a6a29ae --- a/poster.py +++ b/poster.py @@ -1,3 +1,4 @@ +#! /usr/bin/env python3 import csv import datetime as dt from dateutil import relativedelta diff --git a/prep.py b/prep.py old mode 100644 new mode 100755 index c3fb0d8..592e072 --- a/prep.py +++ b/prep.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import csv from datetime import datetime