Package: sabnzbdplus / 0.7.18-1

02_find_parts_in_usr_share.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Make the program find the interface templates, private python modules under /usr/share
--- a/SABnzbd.py
+++ b/SABnzbd.py
@@ -16,6 +16,7 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
 import sys
+sys.path.insert(0,'/usr/share/sabnzbdplus')
 if sys.version_info < (2, 5):
     print "Sorry, requires Python 2.5, 2.6 or 2.7."
     sys.exit(1)
--- a/sabnzbd/constants.py
+++ b/sabnzbd/constants.py
@@ -78,10 +78,10 @@
 DEF_ADMIN_DIR    = 'admin'
 DEF_LOG_DIR      = 'logs'
 DEF_NZBBACK_DIR  = ''
-DEF_LANGUAGE     = 'locale'
-DEF_INTERFACES   = 'interfaces'
+DEF_LANGUAGE     = '../share/sabnzbdplus/locale'
+DEF_INTERFACES   = '../share/sabnzbdplus/interfaces'
 DEF_INT_LANGUAGE = 'locale'
-DEF_EMAIL_TMPL   = 'email'
+DEF_EMAIL_TMPL   = '../share/sabnzbdplus/email'
 DEF_STDCONFIG    = 'Config'
 DEF_STDINTF      = 'Plush'
 DEF_SKIN_COLORS  = {'smpl':'white', 'classic':'darkblue', 'mobile':'light', 'plush' : 'gold'}