From 2d96e0d41adddb37e9f67175629be4075c5bdc21 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 13 Nov 2023 07:48:39 +0100 Subject: [PATCH] Rearranging code: re-introduce old script names after file renaming, for compatibility --- led-badge-11x44.py | 3 +++ led-badge-12x48.py | 1 + lednamebadge.py | 1 + 3 files changed, 5 insertions(+) create mode 100644 led-badge-11x44.py create mode 120000 led-badge-12x48.py diff --git a/led-badge-11x44.py b/led-badge-11x44.py new file mode 100644 index 0000000..582349c --- /dev/null +++ b/led-badge-11x44.py @@ -0,0 +1,3 @@ +import lednamebadge + +lednamebadge.main() diff --git a/led-badge-12x48.py b/led-badge-12x48.py new file mode 120000 index 0000000..db1bcd2 --- /dev/null +++ b/led-badge-12x48.py @@ -0,0 +1 @@ +led-badge-11x44.py \ No newline at end of file diff --git a/lednamebadge.py b/lednamebadge.py index d7d5d90..c176410 100755 --- a/lednamebadge.py +++ b/lednamebadge.py @@ -402,6 +402,7 @@ class LedNameBadge: try: if sys.version_info[0] < 3: + print("Preferring Pyusb over Pyhidapi with Python 2.x") raise Exception("Prefer usb.core with python-2.x because of https://github.com/jnweiger/led-badge-ls32/issues/9") import pyhidapi pyhidapi.hid_init()