aboutsummaryrefslogtreecommitdiff
path: root/system/disk-manager/06-private_pythonlib.patch
diff options
context:
space:
mode:
authorEdinaldo P. Silva <edps.mundognu@gmail.com>2017-06-22 00:23:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-24 08:32:19 +0700
commite385ece073723ed36fe4a52e05163dfb4a356dec (patch)
tree223fb135b8e98d53ada263ebdd02130aa37bc007 /system/disk-manager/06-private_pythonlib.patch
parent4efd96d256ca2368804eb336ee96f885c518b1b1 (diff)
system/disk-manager: Updated for version 1.1.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/disk-manager/06-private_pythonlib.patch')
-rw-r--r--system/disk-manager/06-private_pythonlib.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/system/disk-manager/06-private_pythonlib.patch b/system/disk-manager/06-private_pythonlib.patch
new file mode 100644
index 0000000000000..b3fe1d782a914
--- /dev/null
+++ b/system/disk-manager/06-private_pythonlib.patch
@@ -0,0 +1,29 @@
+Author: Stefano Rivera <stefano@rivera.za.net>
+Description: We use a private Python module directory, patch it into sys.path
+ at the start of the binaries.
+Forwarded: not-needed
+Last-Update: 2010-06-27
+
+---
+ disk-manager.in | 10 +---------
+ 1 file changed, 1 insertion(+), 9 deletions(-)
+
+--- disk-manager.orig/disk-manager.in
++++ disk-manager/disk-manager.in
+@@ -29,15 +29,7 @@ from gettext import gettext as _
+
+ import gtk
+
+-# Hack to make sure that path is set correctly when installation is in /usr/local
+-if "/usr/local" in sys.argv[0] :
+- for path in sys.path[:] :
+- if "/usr/" in path :
+- local_path = path.replace("/usr", "/usr/local")
+- if not local_path in sys.path :
+- sys.path.append(path.replace("/usr", "/usr/local"))
+-
+-print sys.path
++sys.path.insert(0, '/usr/share/disk-manager')
+
+ from DiskManager.DiskManager import *
+ from DiskManager.Config import Config