Package not found: openSUSE:Factory/python-twitter.common.lang

File authentik-ak-libexecdir.patch of Package authentik

--- a/lifecycle/ak.py	2026-02-03 19:27:25.664198799 +0100
+++ b/lifecycle/ak.py	2026-02-04 00:04:36.881463859 +0100
@@ -1,15 +1,13 @@
 """Wrapper for lifecycle/ak, to be installed by uv"""
 
 from os import system, waitstatus_to_exitcode
-from pathlib import Path
 from sys import argv, exit
 
 
 def main():
     """Wrapper around ak bash script"""
-    current_path = Path(__file__)
     args = " ".join(argv[1:])
-    res = system(f"{current_path.parent}/ak {args}")  # nosec
+    res = system(f"__LIBEXECDIR__/ak {args}")  # nosec
     exit_code = waitstatus_to_exitcode(res)
     exit(exit_code)
 
openSUSE Build Service is sponsored by