File SABnzbd.py.patch of Package sabnzbd
--- SABnzbd.py.orig 2025-04-11 11:48:24.000000000 +0200
+++ SABnzbd.py 2025-04-15 18:30:58.251803983 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python3 -OO
+#!@@python3@@ -OO
# Copyright 2007-2025 by The SABnzbd-Team (sabnzbd.org)
#
# This program is free software; you can redistribute it and/or
@@ -934,7 +934,7 @@
sabnzbd.MY_FULLNAME = os.path.normpath(os.path.abspath(sabnzbd.MY_FULLNAME))
sabnzbd.MY_NAME = os.path.basename(sabnzbd.MY_FULLNAME)
- sabnzbd.DIR_PROG = os.path.dirname(sabnzbd.MY_FULLNAME)
+ sabnzbd.DIR_PROG = "@@DATADIR@@"
sabnzbd.DIR_INTERFACES = real_path(sabnzbd.DIR_PROG, DEF_INTERFACES)
sabnzbd.DIR_LANGUAGE = real_path(sabnzbd.DIR_PROG, DEF_LANGUAGE)
org_dir = os.getcwd()