From 2266d897550cc54b07824d3a1eac91742df9b038 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 16 Jul 2024 12:46:47 +0200 Subject: [PATCH] Restore jlmkr.py to make tests happy --- jlmkr.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 jlmkr.py diff --git a/jlmkr.py b/jlmkr.py new file mode 100755 index 0000000..3554b0d --- /dev/null +++ b/jlmkr.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +# SPDX-FileCopyrightText: © 2024 Jip-Hop and the Jailmakers +# +# SPDX-License-Identifier: LGPL-3.0-only + +if __name__ == "__main__": + import subprocess + import sys + import os + + # Get the path of the currently running script + current_path = os.path.realpath(__file__) + + # Define the relative path you want to resolve + relative_path = "src/jlmkr" + + # Resolve the relative path + script_path = os.path.join(os.path.dirname(current_path), relative_path) + + # Get the arguments passed to the current script + args = sys.argv[1:] + + # Pass all arguments to the other script using subprocess + subprocess.run(["python3", script_path] + args, check=True) +