File IPCE-fix_fepy_init.patch of Package IPCE

--- IPCE-r7/Lib/fepy/__init__.py.orig	2008-02-28 11:12:02.000000000 -0700
+++ IPCE-r7/Lib/fepy/__init__.py	2008-02-28 11:11:37.000000000 -0700
@@ -14,5 +14,8 @@
 def override_builtin(name):
     import imp, sys, os
     sys.modules[name] = module = imp.new_module(name)
-    path = os.path.join(sys.prefix, 'Lib', name + '.py')
-    execfile(path, module.__dict__)
+    for path in sys.path:
+        file = os.path.join(path, name + '.py')
+        if os.path.exists(file):
+            break
+    execfile(file, module.__dict__)
openSUSE Build Service is sponsored by