-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore jlmkr.py to make tests happy
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env python3 | ||
# SPDX-FileCopyrightText: © 2024 Jip-Hop and the Jailmakers <https://github.com/Jip-Hop/jailmaker> | ||
# | ||
# 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.call(["python3", script_path] + args) | ||
|