19 lines
728 B
Text
19 lines
728 B
Text
|
$NetBSD: patch-ad,v 1.1.1.1 2005/10/24 02:25:29 minskim Exp $
|
||
|
|
||
|
--- Dependencies/zdaemon-Zope-3.1.0/zdaemon/zdrun.py.orig 2005-10-03 03:48:12.000000000 +0900
|
||
|
+++ Dependencies/zdaemon-Zope-3.1.0/zdaemon/zdrun.py
|
||
|
@@ -85,2 +85,13 @@
|
||
|
sys.path.append(dirname(scriptdir))
|
||
|
+ # Add the zope3 library directory to the module search path
|
||
|
+ import os
|
||
|
+ import sys
|
||
|
+ 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
|
||
|
|