pkgsrc-wip/zope3-unstable/patches/patch-ad

16 lines
629 B
Text
Raw Normal View History

2006-04-28 13:30:14 +02:00
$NetBSD: patch-ad,v 1.7 2006/04/28 11:30:20 ykomatsu Exp $
2005-12-08 08:42:46 +01:00
2006-04-28 13:30:14 +02:00
--- Dependencies/zdaemon-Zope-3.2.1/zdaemon/zdrun.py.orig 2006-04-28 09:02:23.000000000 +0900
+++ Dependencies/zdaemon-Zope-3.2.1/zdaemon/zdrun.py
2006-01-06 01:47:21 +01:00
@@ -85,2 +85,10 @@
2005-12-08 08:42:46 +01:00
sys.path.append(dirname(scriptdir))
+ here = os.path.dirname(os.path.realpath(__file__))
+ swhome = os.path.dirname(here)
+ for parts in [("src",), ("lib", "python"), ("Lib", "site-packages")]:
+ d = os.path.join(swhome, *(parts + ("zdaemon",)))
+ if os.path.isdir(d):
+ d = os.path.join(swhome, *parts)
+ sys.path.insert(0, d)
+ break