summaryrefslogtreecommitdiff
path: root/system/disk-manager/06-private_pythonlib.patch
diff options
context:
space:
mode:
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 0000000000..b3fe1d782a
--- /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