Package: thuban / 1.2.2-14

bitmappath.patch 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
28
29
30
31
32
33
34
Description: Use FHS paths for thuban Projections & Bitmaps Resources.
Author: Paul Wise <pabs3@bonedaddy.net>
Last-Update: 2011-11-03

--- a/Thuban/Model/resource.py
+++ b/Thuban/Model/resource.py
@@ -27,8 +27,11 @@ from Thuban.Model.xmlwriter import XMLWr
 from Thuban.Model.proj import Projection, ProjFile
 from xml.sax import SAXParseException
 
-
-projdir = os.path.join(get_thuban_dir(), "Resources", "Projections")
+# The directory where the default projections are stored has to be changed
+# for
+# the debian package to be conformant with the FHS
+#projdir = os.path.join(get_thuban_dir(), "Resources", "Projections")
+projdir = "/usr/share/thuban/Resources/Projections"
 
 PROJ_EXT = ".proj"
 
--- a/Thuban/UI/resource.py
+++ b/Thuban/UI/resource.py
@@ -19,7 +19,10 @@ from Thuban.Lib.fileutil import get_thub
 import wx
 
 
-bitmapdir = os.path.join(get_thuban_dir(), "Resources", "Bitmaps")
+# The directory where the toolbar icons are stored has to be changed for
+# the debian package to be conformant with the FHS
+#bitmapdir = os.path.join(get_thuban_dir(), "Resources", "Bitmaps")
+bitmapdir = "/usr/share/thuban/Resources/Bitmaps"
 bitmap_extensions = {wx.BITMAP_TYPE_XPM: ".xpm",
                      wx.BITMAP_TYPE_ANY: ""}