File: bitmappath

package info (click to toggle)
thuban 1.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,752 kB
  • sloc: python: 30,427; ansic: 6,181; xml: 4,127; cpp: 1,595; makefile: 166
file content (34 lines) | stat: -rw-r--r-- 1,416 bytes parent folder | 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
Index: thuban/Thuban/Model/resource.py
===================================================================
--- thuban.orig/Thuban/Model/resource.py	2011-11-03 16:45:05.000000000 +0100
+++ thuban/Thuban/Model/resource.py	2011-11-03 16:51:29.000000000 +0100
@@ -27,8 +27,11 @@
 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"
 
Index: thuban/Thuban/UI/resource.py
===================================================================
--- thuban.orig/Thuban/UI/resource.py	2011-11-03 16:45:05.000000000 +0100
+++ thuban/Thuban/UI/resource.py	2011-11-03 16:51:29.000000000 +0100
@@ -19,7 +19,10 @@
 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: ""}