]> git.tnoah.ca Git - lora-radio.git/commitdiff
Use /usr/bin/env python in partition_hashes
authorDionysis Grigoropoulos <dgrig@erethon.com>
Tue, 9 Jan 2024 13:51:03 +0000 (15:51 +0200)
committerDionysis Grigoropoulos <dgrig@erethon.com>
Tue, 9 Jan 2024 13:51:22 +0000 (15:51 +0200)
By using `/usr/bin/env python` we ensure that we'll be selecting the
correct Python version the user most likely expected to be used. The
most common usecase for this is when Reticulum is installed in a virtual
env.

partition_hashes

index 714a0b4d1cfac316a976d0b58c8d8b088505bced..b520250882cb7149e7c836959e35989bc93881e0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/env python
 
 # Copyright (C) 2023, Mark Qvist
 
@@ -32,4 +32,4 @@ calc_hash = hashlib.sha256(firmware_data[0:-32]).digest()
 part_hash = firmware_data[-32:]
 
 if calc_hash == part_hash:
-    print(RNS.hexrep(part_hash, delimit=False))
\ No newline at end of file
+    print(RNS.hexrep(part_hash, delimit=False))