From 9965ac9dc5165cded7a31adb0e6ba33b082ed29e Mon Sep 17 00:00:00 2001 From: Jose Rodriguez Date: Mon, 27 Jul 2026 00:29:48 +0200 Subject: [PATCH] lint: make .py executables in Linux --- src/arch/zx81sd/tools/build_sd81.py | 16 ++++------------ src/arch/zx81sd/tools/gen_map.py | 8 ++------ 2 files changed, 6 insertions(+), 18 deletions(-) mode change 100644 => 100755 src/arch/zx81sd/tools/build_sd81.py mode change 100644 => 100755 src/arch/zx81sd/tools/gen_map.py diff --git a/src/arch/zx81sd/tools/build_sd81.py b/src/arch/zx81sd/tools/build_sd81.py old mode 100644 new mode 100755 index dceccf77e..8ce978cb1 --- a/src/arch/zx81sd/tools/build_sd81.py +++ b/src/arch/zx81sd/tools/build_sd81.py @@ -54,19 +54,11 @@ def main(): - ap = argparse.ArgumentParser( - description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter - ) + ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) ap.add_argument("source", help="BASIC source file (.bas)") - ap.add_argument( - "output_base", nargs="?", help="Output base name (default: source file name)" - ) - ap.add_argument( - "--copy-to", metavar="DIR", help="Also copy the page files + .P loader here" - ) - ap.add_argument( - "--asm", action="store_true", help="Also emit .asm (the generated assembly listing)" - ) + ap.add_argument("output_base", nargs="?", help="Output base name (default: source file name)") + ap.add_argument("--copy-to", metavar="DIR", help="Also copy the page files + .P loader here") + ap.add_argument("--asm", action="store_true", help="Also emit .asm (the generated assembly listing)") ap.add_argument("-O", "--optimize", default="2", help="zxbc.py optimization level (default 2)") ap.add_argument( "-D", diff --git a/src/arch/zx81sd/tools/gen_map.py b/src/arch/zx81sd/tools/gen_map.py old mode 100644 new mode 100755 index 4098cae36..07158114a --- a/src/arch/zx81sd/tools/gen_map.py +++ b/src/arch/zx81sd/tools/gen_map.py @@ -42,13 +42,9 @@ def main(): - ap = argparse.ArgumentParser( - description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter - ) + ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) ap.add_argument("source", help="BASIC source file (.bas)") - ap.add_argument( - "output_base", nargs="?", help="Output base name (default: source file name)" - ) + ap.add_argument("output_base", nargs="?", help="Output base name (default: source file name)") ap.add_argument("-O", "--optimize", default="2", help="zxbc.py optimization level (default 2)") ap.add_argument( "-D",