Package: gausssum / 3.0.2-1

debian_paths.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
35
36
37
38
Author: LI Daobing <lidaobing@gmail.com>
Description: Fix the path to the images and HTML documentation that follows
 the FHS in our Debian package.

@DPATCH@
--- a/gausssum/aboutbox.py
+++ b/gausssum/aboutbox.py
@@ -60,7 +60,7 @@
         self.canvas2 = Canvas(master,width=340,height=260)
         self.canvas2.pack(side=TOP)
 
-        self.photo2 = PhotoImage(file=os.path.join(installlocation,"mesh.gif"))
+        self.photo2 = PhotoImage(file=os.path.join('/usr/share/gausssum',"mesh.gif"))
         self.item2 = self.canvas2.create_image(11,11,anchor=NW,image=self.photo2)
 
         Label(master,text="(c) 2006-2016 Noel O'Boyle").pack(side=TOP)
--- a/gausssum/gausssumgui.py
+++ b/gausssum/gausssumgui.py
@@ -102,7 +102,7 @@
 
         self.frame5=Frame(self.frame1)
         self.frame5.pack(side=LEFT)
-        self.photo = PhotoImage(file=os.path.join(installlocation,"mesh2.gif")) # Doesn't work if don't use self.
+        self.photo = PhotoImage(file=os.path.join('/usr/share/gausssum',"mesh2.gif")) # Doesn't work if don't use self.
         Button(self.frame5,image=self.photo,command=self.runscript).pack(side=LEFT)
         self.root.bind("<Return>", self.runscript)
 
@@ -605,8 +605,8 @@
 
     def webdocs(self):
         if hasattr(sys, "frozen"): # Using cx_Freeze
-            webbrowser.open(os.path.join(installlocation, "Docs", "index.html"))
+            webbrowser.open(os.path.join("/usr/share/doc/gausssum/html/index.html"))
         else:
-            webbrowser.open(os.path.join(installlocation, "..", "Docs", "index.html"))
+            webbrowser.open(os.path.join("/usr/share/doc/gausssum/html/index.html"))