pkgsrc/www/zope3/patches/patch-ad
minskim b42a47591b Import zope3 from pkgsrc-wip. Packaged by Yoshito Komatsu and
modified by me.

Zope is an open source application server for building content
management systems, intranets, portals, and custom applications.
2005-10-24 02:25:20 +00:00

18 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