File: jumpapplet-import-path.patch

package info (click to toggle)
autojump 20-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 336 kB
  • sloc: python: 482; sh: 363; xml: 81; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 803 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
Description: Load autojump as a module for jumpapplet using its full path
    jumpapplet cannot load autojump as a module with a simple import since it is
    not installed in the same directory.
Forwarded: not-needed
Author: Tanguy Ortolo <tanguy+debian@ortolo.eu>
Last-Update: 2012-04-14

Index: autojump/jumpapplet
===================================================================
--- autojump.orig/jumpapplet	2011-12-10 23:41:35.000000000 +0100
+++ autojump/jumpapplet	2012-04-14 12:34:25.082657188 +0200
@@ -24,7 +24,9 @@
 import pygtk
 pygtk.require('2.0')
 import gtk
-from autojump import open_dic,get_dic_file
+import imp
+_autojump = imp.load_source('autojump', '/usr/share/autojump/autojump.py')
+open_dic,get_dic_file = _autojump.open_dic,_autojump.get_dic_file
 
 defaults={}
 actions={}