summaryrefslogtreecommitdiff
path: root/www/zope3/patches/patch-ad
blob: 32b5f8966afd1699c7d22fc1ac0fad48d646f5c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ad,v 1.3 2006/05/06 22:38:28 wiz Exp $

--- 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
@@ -85,2 +85,10 @@
         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