File: 30-python_private_dir.patch

package info (click to toggle)
alacarte 3.56.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 2,224 kB
  • sloc: sh: 4,680; python: 1,201; makefile: 188; xml: 73; sed: 39
file content (22 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Josselin Mouette <joss@debian.org>
Date: Sat, 27 Feb 2010 13:16:00 +0000
Subject: Modify sys.path to use a private directory.

Bug: https://bugs.debian.org/529495
---
 alacarte.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/alacarte.in b/alacarte.in
index 06eba6b..c3ee64e 100644
--- a/alacarte.in
+++ b/alacarte.in
@@ -18,6 +18,8 @@
 #   License along with this library; if not, write to the Free Software
 #   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
+import sys
+sys.path.insert(0,'/usr/share/alacarte')
 from Alacarte.MainWindow import main
 
 if __name__ == '__main__':