Package: shoogle / 0.1.4-7

shoopath.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
Subject: Set path to include Debian module install location
Author: David Steele <steele@debian.org>
Forwarded: not-needed
Last-Update: 2018-06-22


--- a/bin/shoogle
+++ b/bin/shoogle
@@ -1,12 +1,8 @@
 #!/usr/bin/python3
 
-def add_parent_directory_to_sys_path():
-    current_directory = os.path.dirname(os.path.realpath(__file__))
-    sys.path.insert(0, os.path.join(current_directory, os.pardir))
-
 import os.path
 import sys
 
-add_parent_directory_to_sys_path()
+sys.path.insert(0, "/usr/share/shoogle")
 import shoogle
 sys.exit(shoogle.main(sys.argv[1:]))