All of lore.kernel.org
 help / color / mirror / Atom feed
* prefix and python site-packages
@ 2014-04-23  8:21 Olaf Hering
  2014-04-23  9:06 ` Ian Campbell
  2014-04-24 10:55 ` Ian Jackson
  0 siblings, 2 replies; 7+ messages in thread
From: Olaf Hering @ 2014-04-23  8:21 UTC (permalink / raw)
  To: ian.campbell, ian.jackson; +Cc: xen-devel


configure --prefix=/some/where puts pygrub and xen/lowlevel/xc.so below
/some/where. But pygrub fails because it can not find the python
site-packages. Is there a clean way to automate something like this?

diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub
index 7759b1a..4134082 100644
--- a/tools/pygrub/src/pygrub
+++ b/tools/pygrub/src/pygrub
@@ -14,6 +14,7 @@
 #
 
 import os, sys, string, struct, tempfile, re, traceback
+sys.path.insert(0, "/some/where/lib64/python2.6/site-packages")
 import errno
 import copy
 import logging


Olaf

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-24 10:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-23  8:21 prefix and python site-packages Olaf Hering
2014-04-23  9:06 ` Ian Campbell
2014-04-23  9:33   ` Olaf Hering
2014-04-23  9:54     ` Ian Campbell
2014-04-23 10:05       ` Olaf Hering
2014-04-23 10:08         ` Ian Campbell
2014-04-24 10:55 ` Ian Jackson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.