From c691f9b5e99d89095580aeacdd30ff2c28e9ba8c Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 24 May 2016 20:31:01 +0200 Subject: [PATCH] fix python shebangs --- bootloader/combine/prepare.py | 2 +- bootloader/firmware_align.py | 2 +- bootloader/firmware_sign.py | 2 +- bootloader/firmware_sign_split.py | 3 +-- gen/bitmaps/generate.py | 3 +-- gen/fonts/generate.py | 2 +- gen/handlers/handlers.py | 3 +-- 7 files changed, 7 insertions(+), 10 deletions(-) diff --git a/bootloader/combine/prepare.py b/bootloader/combine/prepare.py index 491c3000f5..0d463117c2 100755 --- a/bootloader/combine/prepare.py +++ b/bootloader/combine/prepare.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 bl = open('bl.bin').read() fw = open('fw.bin').read() combined = bl + fw[:256] + (32768-256)*'\x00' + fw[256:] diff --git a/bootloader/firmware_align.py b/bootloader/firmware_align.py index 6a2788c9dd..d0376784fa 100755 --- a/bootloader/firmware_align.py +++ b/bootloader/firmware_align.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 import sys import os diff --git a/bootloader/firmware_sign.py b/bootloader/firmware_sign.py index 152f92ed57..7ccd8e99a3 100755 --- a/bootloader/firmware_sign.py +++ b/bootloader/firmware_sign.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 import argparse import hashlib import struct diff --git a/bootloader/firmware_sign_split.py b/bootloader/firmware_sign_split.py index 3d72b968ba..7e6195a238 100755 --- a/bootloader/firmware_sign_split.py +++ b/bootloader/firmware_sign_split.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +#!/usr/bin/env python2 import hashlib import os import subprocess diff --git a/gen/bitmaps/generate.py b/gen/bitmaps/generate.py index 54b3ac2cbe..bc987dd59f 100755 --- a/gen/bitmaps/generate.py +++ b/gen/bitmaps/generate.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +#!/usr/bin/env python2 import glob import os from PIL import Image diff --git a/gen/fonts/generate.py b/gen/fonts/generate.py index 3bd5b8e7c1..8f166f82a7 100755 --- a/gen/fonts/generate.py +++ b/gen/fonts/generate.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 from PIL import Image class Img(object): diff --git a/gen/handlers/handlers.py b/gen/handlers/handlers.py index d74a64afe6..ae1635b5f5 100755 --- a/gen/handlers/handlers.py +++ b/gen/handlers/handlers.py @@ -1,5 +1,4 @@ -#!/usr/bin/python - +#!/usr/bin/env python2 handlers = [ 'hard_fault_handler', 'mem_manage_handler',